我知道所有匿名用户的默认 mod_expire 缓存时间为 24 小时。如何让 Apache mod_expire 缓存数据的时间少于 24 小时?比如说 12 小时?
这该通过吗?
ExpiresActive On
ExpiresByType image/jpg "access plus 12 hours"
ExpiresByType image/jpeg "access plus 12 hours"
ExpiresByType image/gif "access plus 12 hours"
ExpiresByType image/png "access plus 12 hours"
ExpiresByType text/css "access plus 12 hours"
ExpiresByType application/pdf "access plus 12 hours"
ExpiresByType text/x-javascript "access plus 12 hours"
ExpiresByType application/x-shockwave-flash "access plus 12 hours"
ExpiresByType image/x-icon "access plus 12 hours"
ExpiresDefault "access plus 12 hours"