How do I make Firefox reload page when back button is pressed?

后端 未结 7 1759
萌比男神i
萌比男神i 2020-12-17 21:40

I have tried every combination and permutation of meta tags that are supposed to stop a page from being cached, but Firefox STILL caches the page! I just need the U

相关标签:
7条回答
  • 2020-12-17 22:40
    session_cache_limiter('nocache');
    

    That should automatically generate all the required headers. Note that some browsers, such as Opera, still ignore these when using the back button.

    EDIT

    The relevant headers are as follows, in case you want to generate them some other way:

    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    
    0 讨论(0)
提交回复
热议问题