-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
  • 6,115
  • 16
  • 50
  • 57
ethanjyx
  • 1,970
  • 7
  • 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
  • 168,305
  • 31
  • 280
  • 331