环境:
使用了CDN+squid的环境,但由于CDN和squid的规则冲突,准备的设置方法为:
1.
ExpiresActive On
ExpiresByType text/html A14400
ExpiresByType application/x-javascript A86400
ExpiresByType text/css A86400
ExpiresByType image/jpeg A604800
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
2.
<Location “/rss/”>
Header Set Cache-Control max-age=9000
</Location>
转载请注明:爱开源 » 给html页面头部设置过期时间