5 ms·
Why don't use HTML5 application cache with the manifest? At first look it do the same that you need: * Cache css, js and images file * Defined cached entries
by resca79 9y ago
Why don't use HTML5 application cache with the manifest?
At first look it do the same that you need:
* Cache css, js and images file
* Defined cached entries page ex index.html, show.html etc..
* Fallback Entries
and it is really simple to use.
https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_...
- dlbucci 9y agoFor one, it's deprecated. I've also found (at least during development) that it seems to cache too aggressively. Plus it lets you do weird things, like cache your appcache file. Combine that with caching the HTML, and you won't even be able to update your site until you clear the browser cache. I do appreciate the surface simplicity, but the complexity under the surface makes it painful to use.
- rictic 9y agoI had a project that was pretty much a perfect fit for the app cache: - 100% static - reasonable dataset size - amenable url space (a few static files, then a large url space that could fall back to serving out the index.html file) Despite this, the appcache just never worked reliably. It was a crapshoot whether it would actually work offline for any given user, I had to be careful not to permanently cache the appcache itself, and it was just generally inflexible and unpleasant.
- delta1 9y agoFrom the top of your link: "Using the application caching feature described here is at this point highly discouraged; it’s in the process of being removed from the Web platform. Use Service Workers instead." Also: https://alistapart.com/article/application-cache-is-a-douchebag https://alistapart.com/article/application-cache-is-a-douche...