-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache Manifest is Too Hard to Adopt #1
Comments
Regarding you're last suggestion: "There should be browser behavior to prompt the user to reload a page where the cache has updated" this should be either kept app-specific or triggered by a cancelable event. Long-lived applications (such as Gmail for example) or regular websites using AppCache as an asset preloader have very different needs and expectations. |
I would also add this request: I'd like to be able to signal specifically which resource in my app cache is new. The current behavior is to fetch each resource in the cache when the manifest is touched/updated. This is unnecessary in most cases, as in most cases only a limited number of resources are actually new. If I can specify which resources have been updated, this saves bandwidth, server resources, and speeds up the client. See http://blog.sethladd.com/2010/10/proposal-to-enhance-html5-app-cache.html for one option. |
Seth: Isn't this already covered in 17.3 of the application cache download process by using fingerprinted assets with Expires headers set far away in the future?
|
It would also be nice to be able to tell the browser to delete cache programmatically (for eg. by Javascript). Consider the case when you have a mobile version and full version of the site hosted on the same domain. Both versions uses cache manifest, but will have diff. resources. User wants to switch from mobile version of the site to full version of the site, but since they both are hosted on the same domain, browser will still load resources of mobile version (from the cache manifest of mobile site), even if the server tries to present the full site. If there was a way to delete current cache, then it could have worked. |
There is also a need to be able to dynamically mutate the appcache by adding/removing/updating items with Javascript. The now defunct DataCache spec would have solved some of these issues. There is an open issue for this on the W3C issue tracker, but it looks like it's not a high priority. |
There's a number of security concerns that arise when code which can |
@sindresorhus also, the cache manifest is designed to support atomic sets of assets, which I'm not sure is what people want when they want to add items dynamically. |
@tobie I'm not sure I follow. Can you elaborate on what security problems it would cause? @wycats With the newfound popularity of having almost everything client-side, there is an actual need to be able to cache assets dynamically from the client. If not appcache, then something else. We're currently experimenting with [ab]using localStorage for this. But that is only a workaround until we get something solid. |
On a shared computer, user A logs onto example.com, overwrites one of |
I believe this is solved with ServiceWorkers. Please re-open if necessary |
Because the cache manifest requires that the main HTML asset is cached, it is difficult for people with existing pages to adopt it. If they wanted to use the cache manifest, they would have to change their site to make the main index.html more permanent, and use JavaScript to update the content on the main page and prompt the user to refresh.
Specific Issues
Specific Suggestions
General Open Questions
What is a cache manifest group?
References
http://www.stevesouders.com/blog/2011/10/03/improving-app-cache/
http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html
The text was updated successfully, but these errors were encountered: