News for hackers. Stuff that matters.
Re:How Google’s CDN prevents your site from loading in China by opendais on Friday September 12, 2014 @03:57PM (#8310096)
Did you read the post? ;)

It needs to be built into the browser because of issues like the one he was having.

Re:How Google’s CDN prevents your site from loading in China by sp332 on Friday September 12, 2014 @04:09PM (#8310158)
This solves the problem on the server side, using existing standards, without building any new tech into the browser.
Re:How Google’s CDN prevents your site from loading in China by ShaneOG on Friday September 12, 2014 @04:18PM (#8310209)
The problem is that the current "solution" is to cache based on the URL, which breaks if the URL is not accessible, as in this instance.

The suggestion solves that issue by using hashes of the files, so it doesn't matter if they are loaded from a remote/CDN URL or from the same server, they will be considered cached by the browser (and loaded from cache) regardless once the hash matches.

Re:How Google’s CDN prevents your site from loading in China by IanCal on Friday September 12, 2014 @04:38PM (#8310324)
Did you read the article?

> It turns out that many websites are loading content from Google’s CDN, or Facebook/Twitter APIs, which are blocked in China.

Re:How Google’s CDN prevents your site from loading in China by sp332 on Friday September 12, 2014 @04:53PM (#8310402)
I'm not commenting on the article, I'm replying to realusername's "partially related" idea.
Re:How Google’s CDN prevents your site from loading in China by opendais on Friday September 12, 2014 @05:06PM (#8310472)
It doesn't solve the problem because of the OP's issues.

Using a hash would allow you to load them from any URL, including the blocked ones.

Re:How Google’s CDN prevents your site from loading in China by seba_dos1 on Friday September 12, 2014 @04:16PM (#8310195)
No, it doesn't.
Re:How Google’s CDN prevents your site from loading in China by sp332 on Friday September 12, 2014 @04:29PM (#8310274)
Realusername would like "a cross-website cache for public scripts". That's what this does. Every site gets to load the version from your browser's cache without downloading it. The problem given is that "each of them is downloaded thousands of times", and this fixes that.
Re:How Google’s CDN prevents your site from loading in China by curun1r on Friday September 12, 2014 @05:09PM (#8310487)
But you're presuming that the shared URL is available to the browser. The whole point of this story is that that presumption is absolutely false for internet users in China. I'm betting that you'd find the same to be true for users in Iran, North Korea and any other embargoed nation. Realusername's solution was an attempt to solve the problem for everyone without writing off the billion or so users unfortunate enough to live in repressive countries.

But, you know, you live in the US and your solution works for everyone in the US, so F everyone who doesn't.