0
点赞
收藏
分享

微信扫一扫

apache设置无缓存

打开httpd.conf

开启扩展


确保开启 LoadModule headers_module modules/mod_headers.so

apache设置无缓存_css

添加配置项


并添加以下配置,跟据文件类型来让浏览器每次都从服务器读取,这里测试用css、js、swf、php、html、htm这几种文件。

<FilesMatch "\.(css|js|swf|php|htm|html)$">
Header set Cache-Control "private,no-cache,no-store,proxy-revalidate,no-transform"
Header set Pragma "no-cache"
</FilesMatch>

 apache设置无缓存_php_02

亲测oK


举报

相关推荐

0 条评论