设置静态页面的缓存
Header set Cache-Control “max-age=86400″
<
/FilesMatch>
设置JS,CSS样式和文本的缓存
Header set Cache-Control “max-age=259200″
设置图片和动画格式文件的缓存
Header set Cache-Control “max-age=259200″
关闭动态页面的缓存
Header unset Cache-Control
PS:max-age和expires同时用 max-age优先级高
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27181165/viewspace-775757/
,如需转载,请注明出处,否则将追究法律责任。