Open j-c-t opened 7 years ago
@j-c-t - thanks for reporting this 👍 . It's an interesting find - I wonder why this isn't a problem for other experiments in which we include a JS file via the script tag as well - e.g. Plain JS External or React External.
This way or another - we will try to investigate this further, especially that we planned to create a few experiments around cross-origin issues anyway.
I'll leave this issue open for now and once we know more will report back.
Cheers! :)
I'm guessing, but for Angular 2, it's possible that your web server is misunderstanding the mime type for main.ts
(the response header I'm seeing is Content-Type:video/mp2t
, as .ts is not only common for TypeScript but is also an MPEG container format) and needs to have its CORS configuration set to return Access-Control-Allow-Origin: *
for this file format. Or maybe a different approach to transpiling and loading the TypeScript. :)
For Ember it looks like it may be something more fundamental to History, for example: https://stackoverflow.com/questions/14807921/html5-history-api-pushstate-from-a-domain-to-a-subdomain
Quite an interesting project, thank you for doing the research! I note that some of your results around certain frameworks not appearing in google's cache may be related to cross origin issues, when the cache attempts to load them. You can see this if you open up your JavaScript console while viewing the page in Google's cache.
For example, for the Angular 2 test:
And ember:
It may be possible to resolve the above (at least the Angular 2 one, regarding CORS headers; less sure about the Ember one) in such a way that you will get better cache results.
I believe most of the other tests load their files from within the cache without issue.