apache_conf htaccess缓存
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf htaccess缓存相关的知识,希望对你有一定的参考价值。
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
# Or, compress certain file types by extension:
SetOutputFilter DEFLATE
ExpiresActive on
ExpiresByType application/javascript "modification plus 614800 seconds"
ExpiresByType text/css "modification plus 614800 seconds"
ExpiresByType image/jpeg "modification plus 614800 seconds"
ExpiresByType image/gif "modification plus 614800 seconds"
ExpiresByType image/x-ico "modification plus 614800 seconds"
ExpiresByType image/png "modification plus 614800 seconds"
以上是关于apache_conf htaccess缓存的主要内容,如果未能解决你的问题,请参考以下文章
apache_conf htaccess缓存
apache_conf 浏览器缓存.htaccess
apache_conf 通过htaccess利用浏览缓存。
apache_conf 通过htaccess利用浏览缓存。
apache_conf htaccess设置浏览器缓存
apache_conf 主htaccess重定向和缓存设置