apache_conf htaccess:利用浏览器缓存的指令

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf htaccess:利用浏览器缓存的指令相关的知识,希望对你有一定的参考价值。

## EXPIRES CACHING ##
<IfModule mod_expires.c>
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 text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##

## http://thomasgriffinmedia.com/blog/2010/11/how-to-leverage-browser-caching-in-wordpress-via-htaccess/

以上是关于apache_conf htaccess:利用浏览器缓存的指令的主要内容,如果未能解决你的问题,请参考以下文章

apache_conf htaccess:利用浏览器缓存的指令

apache_conf 利用浏览器缓存#browsercaching #optimization #htaccess

apache_conf Laravel .htaccess文件,利用浏览器缓存和gzip压缩

apache_conf 浏览器缓存.htaccess

apache_conf htaccess设置浏览器缓存

apache_conf 使用.htaccess启用和禁用浏览器缓存