I am using the thinkphp framework. I want to reload the page to be removed when a page is backward, that is, when I click the back button of the browser, instead of reading the cache. I add it to the corresponding Controller Method on this page. header (& quot; cache-Control: no-cache, must-revalidate & quot ;);... I am using the thinkphp framework. I want to reload the page to be removed when a page is backward, that is, when I click the back button of the browser, instead of reading the cache. I add it to the corresponding Controller Method on this page. header ("Cache-Control: no-cache, must-revalidate "); but cache_control does not work. Why?
Reply content:
I am using the thinkphp framework. I want to reload the page to be removed when a page is backward, that is, when I click the back button of the browser, instead of reading the cache. I add it to the corresponding Controller Method on this page. header ("Cache-Control: no-cache, must-revalidate "); but cache_control does not work. Why?
I used the thinkphp framework tp box. cache_control is private by default. So I set it in the Controller and it does not work. I changed it to the configuration file.
Header ("Cache-Control: no-store, no-cache, must-revalidate"); header ("Expires: Sat, 26 Jul 1997 05:00:00 GMT "); // past time
Reading this article by laruence: