4 ms·
Works now. Sorry guys. I tried to hotfix something into production and screwed things up. This is a lesson I will not forget... Lol.
by reiinakano 9y ago
Works now. Sorry guys. I tried to hotfix something into production and screwed things up. This is a lesson I will not forget... Lol.
- BugsJustFindMe 9y agoDespite being able to fetch https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/gh-pages/bundle.js https://raw.githubusercontent.com/reiinakano/fast-style-tran... I'm still getting 404s for https://reiinakano.github.io/fast-style-transfer-deeplearnjs/bundle.js https://reiinakano.github.io/fast-style-transfer-deeplearnjs... (but I can get https://reiinakano.github.io/fast-style-transfer-deeplearnjs/bundle.js?foo https://reiinakano.github.io/fast-style-transfer-deeplearnjs...) Maybe throw ?<random> on your linked urls? Github's cdn appears to be in terrible shape. ¯\_(ツ)_/¯
- reiinakano 9y agoMaybe clear the cache? Sorry not sure how to debug as it's up for me on all my browsers + curl
- BugsJustFindMe 9y agoClearing cache doesn't fix it. So far the only way I can get it to load is by putting a breakpoint inside initializePolymerPage just before it appends bundleScript to head, and setting bundleScript.src = 'bundle.js?<anything>' and then resuming execution. Like I said, ¯\_(ツ)_/¯
- reiinakano 9y agoI guess this is Github's issue then? Things should settle down in a few days, it might just be having trouble with the HN traffic. I'm not very well versed with the web, what does 'bundle.js?<anything>' do? Will adding that to my code solve the problem?
- BugsJustFindMe 9y agoA question mark indicates the beginning of a query string ( https://en.wikipedia.org/wiki/Query_string https://en.wikipedia.org/wiki/Query_string ). Basically most web servers ignore it and anything that comes after it if they're not expecting to process any query parameters, with one useful bonus. Query string parameters unique-ify the request, so that any intermediate address caching doesn't interfere with getting the latest version of the URL content if you append something like: "?" + Math.random() to any file fetch requests. It doesn't really matter what comes after the question mark. If it's different than a previous request, it will almost always bypass any caching layers. (fwiw, the cdn has finally resolved itself and the page now loads for me too)
- reiinakano 9y agoAh, that makes sense. Thanks a lot for the detailed explanation!