<body>

kenshou

天空没有飞过的痕迹,但我已经努力飞过……

« Home | Next » | Next » | Next » | Next » | Next » | Next » | Next » | Next » | Next » | Next »

apache为静态文件增加 Expires header,让ie缓存

1.加载mod:
LoadModule expires_module modules/mod_expires.so
2.加入配置(js的可能为application/x-javascript类型)

ExpiresActive On
ExpiresDefault "access plus 12 hours"
ExpiresByType text/plain "access plus 1 days"
ExpiresByType text/css "access plus 1 days"
ExpiresByType text/javascript "access plus 1 days"
ExpiresByType image/gif "access plus 1 days"
ExpiresByType image/png "access plus 1 days"
ExpiresByType image/jpeg "access plus 1 days"
ExpiresByType image/x-icon "access plus 1 days"

标签: ,

leave a response