FAILED - (未设置max-age或expires)_设置静态内容缓存时间
2014-11-25 14:04
330 查看
百度站长优化建议 中出现:FAILED -(未设置max-age或expires)怎么解决?
1:打开.htaccess,
在最后添加:(含义是将某些文件的缓存保存2592000秒,30天)
htaccess大全:http://blog.csdn.net/wide288/article/details/8196732
1:打开.htaccess,
在最后添加:(含义是将某些文件的缓存保存2592000秒,30天)
# BEGIN ******.com <FilesMatch".(flv|gif|jpg|jpeg|png|ico|swf|js|css|pdf)$"> Header set Cache-Control "max-age=2592000" </FilesMatch> # END
htaccess大全:http://blog.csdn.net/wide288/article/details/8196732
相关文章推荐
- IIS设置静态内容缓存时间
- Apache htaccess 设置 设置expires和max-age缓存 的兼容写法
- php设置静态内容缓存时间的方法
- 怎样设置max-age或expires来缓存你的站点文件
- centos6.5源码安装和centos7.2使用yum安装httpd后,如何添加模块;以及怎么设置Cache-Control:max-age=?浏览器缓存时间
- IIS设置静态内容缓存时间
- 设置静态内容缓存时间
- php设置静态内容缓存时间的方法
- 如何设置max-age或expires来缓存你的站点文件
- 设置静态内容缓存时间
- 设置静态内容缓存时间:N/A
- asp.net 中设置静态内容缓存时间
- 设置静态内容缓存时间
- centos6.5源码安装和centos7.2使用yum安装httpd后,如何添加模块;以及怎么设置Cache-Control:max-age=?浏览器缓存时间
- 如何设置max-age或expires来缓存您的站点文件
- 设置网站expires和max-age属性
- Nginx设置静态页面压缩和缓存过期时间的方法
- 优化建议解决方案:未设置max-age或expires
- 优化建议解决方案:未设置max-age或expires
- 【expires】设置缓存时间