prevent browser back button cache

后端 未结 1 1412
太阳男子
太阳男子 2020-12-06 13:18

here is the code i have written

index.php:

  

        
相关标签:
1条回答
  • 2020-12-06 14:03

    Thanks guys for helping me out but i found a way that force the browser to prevent cache and i have used the below code :

    header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1.
    header("Pragma: no-cache"); // HTTP 1.0.
    header("Expires: 0 "); // Proxies.
    

    here is the reference : Making sure a web page is not cached, across all browsers and its working pretty good.

    0 讨论(0)
提交回复
热议问题