I'm using the thinkphp framework I want to back up a page when you click the browser's Back button when the back page reloads instead of reading the cache I added the header ("Cache-control:no-cache") to the Controller method on this page. Must-revalidate "); But Cache_control doesn't work.
Reply content:
I'm using the thinkphp framework I want to back up a page when you click the browser's Back button when the back page reloads instead of reading the cache I added the header ("Cache-control:no-cache") to the Controller method on this page. Must-revalidate "); But Cache_control doesn't work.
I am using the thinkphp frame TP box Cache_control default is private so I set in the controller does not work I changed the configuration file on it.
header("Cache-Control: no-store, no-cache, must-revalidate");header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); //过去的时间
See Bird Brother This article: http://www.laruence.com/2010/03/05/1332.html, for the refresh, F5, backward is not the same, you really do use the cache, rather than re-download