You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Library Cache would be used for caching any framework/library used on a certain website and then be shared with any website that uses the same libraries.
For example:
I go to aaa.tld, and I get Angular 1.5.5 loaded. So Angular 1.5.5 will be downloaded to my browser.
Then I go to bbb.tld, and that website has indeed the Angular 1.5.5 as well. The browser needs to download it again.
However, both files have the same hash because they look exactly the same, and they come from the same origin (usually bower, npm or the developer's github repo).
My proposal would be to have a manifest.json or even a package.json/bower.json, where I would define which libraries I'd like to use in production.
Browser would lookup for these libraries on the LibraryCache, and if they are not there, the browser would download it from a source, or some other location.
Once downloaded, they will remain on the browser.
Create an in-browser
LibraryCache
This Library Cache would be used for caching any framework/library used on a certain website and then be shared with any website that uses the same libraries.
For example:
I go to aaa.tld, and I get Angular 1.5.5 loaded. So Angular 1.5.5 will be downloaded to my browser.
Then I go to bbb.tld, and that website has indeed the Angular 1.5.5 as well. The browser needs to download it again.
However, both files have the same hash because they look exactly the same, and they come from the same origin (usually bower, npm or the developer's github repo).
My proposal would be to have a
manifest.json
or even a package.json/bower.json, where I would define which libraries I'd like to use in production.Browser would lookup for these libraries on the LibraryCache, and if they are not there, the browser would download it from a source, or some other location.
Once downloaded, they will remain on the browser.
Possible problems @AdamModus and I thought:
vendor.js
file, the hash wouldn't be there. Solution: No need to use the vendor.js concatenated file anymore.The text was updated successfully, but these errors were encountered: