Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Despite being able to fetch https://raw.githubusercontent.com/reiinakano/fast-style-tran... I'm still getting 404s for https://reiinakano.github.io/fast-style-transfer-deeplearnjs... (but I can get https://reiinakano.github.io/fast-style-transfer-deeplearnjs...)

Maybe throw ?<random> on your linked urls? Github's cdn appears to be in terrible shape.

¯\_(ツ)_/¯



Maybe clear the cache? Sorry not sure how to debug as it's up for me on all my browsers + curl


Clearing 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, ¯\_(ツ)_/¯


I 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?


A question mark indicates the beginning of a 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)


Ah, that makes sense. Thanks a lot for the detailed explanation!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: