I want the browser to reload the page when user clicks on back and forth buttons, but Firefox caches the pages. Is there a way to use JavaScript to disable the cache or simply force the reload?
Asked
Active
Viewed 2,896 times
-1
-
you need this http://stackoverflow.com/questions/8155064/how-to-programmatically-empty-browser-cache – HIRA THAKUR Oct 12 '13 at 18:07
-
I tried ` ` but it does not seem to work in Firefox 24 – ethanjyx Oct 12 '13 at 18:10
1 Answers
1
You are probably looking for this:
browser.cache.offline.enable = false
You may also check a related question:- Turn off caching on Firefox
EDIT:-
You may try to do it like this:-
<META HTTP-EQUIV="Cache-Control" CONTENT="max-age=0">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META http-equiv="expires" content="0">
<META HTTP-EQUIV="Expires" CONTENT="Sat, 12 Oct 2013 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

Community
- 1
- 1

Rahul Tripathi
- 168,305
- 31
- 280
- 331
-
I think this is for manually configuring Firefox instead of in Javascript code? – ethanjyx Oct 12 '13 at 18:12
-
@ethanjyx:- Is that not working for you? Or you want something else? – Rahul Tripathi Oct 12 '13 at 18:13
-
2This is within the about:config dialog. It can't be accessed from JavaScript – Christian Kuetbach Oct 12 '13 at 18:13
-
-