ir-g
ir-g

Reputation: 252

Javascript selective Cache Control library

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

Answers (2)

ir-g
ir-g

Reputation: 252

No, JavaScript cannot change/delete/add cached files.

Upvotes: 1

user234932
user234932

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

Related Questions