apache响应报⽂头部设置转载:
Apache⾥配置 mod_expires 和 mod_headers 以⽀持CACHE
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 days"
ExpiresByType text/html "access plus 1 weeks"
ExpiresByType image/gif "access plus 2 months"
ExpiresByType image/jpeg "access plus 2 months"
ExpiresByType application/x-shockwave-flash "access plus 2 months"
ExpiresByType application/x-javascript "access plus 2 months"
</IfModule>
<IfModule mod_headers.c>
# YEAR十年前后>创业步骤
<FilesMatch "\.(flv|gif|ico|jpeg)$">
Header t Cache-Control "max-age=2592000"
</FilesMatch>
# WEEK
<FilesMatch "\.(pdf|swf|js|css)$">
Header t Cache-Control "max-age=604800"令我感动的事
甄子丹演的电影
业主大会</FilesMatch>
# DAY
脚臭是什么原因<FilesMatch "\.(htm|html|shtml)$">于建立
Header t Cache-Control "max-age=604800"
</FilesMatch>
</IfModule>
新鲜百合怎么吃