views:

32

answers:

4

Working with sensitive files that require the cache to be cleared each time... how do I tell Firefox and Chrome to clear my cache each time I refresh the page and/or not cache to begin with?

Many thanks!

A: 

In firefox type about:config in your address bar and set 'network.http.use-cache' to false.

nw
A: 

you could also set HTTP headers (or used the in-page <meta http-equiv= equivalents, for HTML) to disallow caching of those files.

DDaviesBrackett
+2  A: 

For Firefox, there is an Add-on called 'Web Developer'. Among many useful features, it has a 'Disable Cache' option that's easy to toggle on and off.

rlovtang
+1  A: 

Also, reloading the page with Cmd-Shft-R (sorry, that's for Mac, I guess it's Ctrl-Shft-R for Windows) seems to avoid using the cache.

rlovtang
Using this for now. IS there anyway to turn off cache permanent like? ;)
bobber205
You mean from the server? If your data is sensitive the server should tell the client not to cache the data. You control this by sending Cache-Control and Expires headers from your server. Maybe also consider using HTTPS.
rlovtang
Unfortunately this is not an option for me.
bobber205