Reputation: 252
I need to control which files I cache, list these files and remove certain files(user selected) via some form of Javascript. Is there any Javascript code capable of doing this?
Notes:
Upvotes: 2
Views: 264
Reputation:
Commonly, you control the cache using the frontend HTTP server and the Expires
and Cache-Control
headers. For example, take a look at this article: http://www.mnot.net/cache_docs/
Alternatively, you have the new offline features in HTML5 if you want a webapp that can run in offline mode. There's a video about this. Also, look at the tutorial on HTML5 rocks.
Upvotes: 1