.htaccess文件设置。
<IfModule mod_headers.c>
<FilesMatch "\.(php)$">
Header set Cache-Control "no-cache, no-store"
Header set Pragma "no-cache"
Header set Expires "-1"
</FilesMatch>
</IfModule>
apache http.conf配置:
LoadModule headers_module modules/mod_headers.so