通过.htaccess利用WordPress中的浏览器缓存
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了通过.htaccess利用WordPress中的浏览器缓存相关的知识,希望对你有一定的参考价值。
"We should always be looking for ways to improve the functionality of our blogs. One of the easiest ways to improve our blog functionality and speed is to leverage browser caching."
## EXPIRES CACHING ## ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 2 days" ## EXPIRES CACHING ##
以上是关于通过.htaccess利用WordPress中的浏览器缓存的主要内容,如果未能解决你的问题,请参考以下文章
text 用于Wordpress的htaccess配置(为客户端项目开发并利用缓存,正确时区,ETAG配置,Compressio
apache_conf 通过将其放入/ wp-content / uploads /中的新Htaccess文件,在本地版本的网站中加载生产WordPress上传
apache_conf 通过.htaccess(主.htaccess)保护wordpress网站