.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
禁用Apache缓存
本文介绍如何通过修改.htaccess文件及http.conf配置来让Apache服务器不缓存PHP文件,实现PHP内容在Internet Explorer浏览器下的即时更新,避免因缓存导致的内容不同步问题。
761

被折叠的 条评论
为什么被折叠?



