-1

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?

Kara
  • 5,996
  • 16
  • 49
  • 56
ethanjyx
  • 1,821
  • 6
  • 28
  • 50

1 Answers1

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
  • 161,154
  • 30
  • 262
  • 319