Commit 19795327 authored by mikeytown2's avatar mikeytown2

#1070232: small mods to cache dir .htaccess file.

parent dbab7b9a
......@@ -1298,13 +1298,15 @@ function boost_htaccess_cache_dir_generate() {
}
$string .= "<FilesMatch \"\.($files)$\">\n";
$string .= " <IfModule mod_expires.c>\n";
$string .= " ExpiresDefault A0\n";
$string .= " ExpiresDefault A5\n";
$string .= " </IfModule>\n";
$string .= " <IfModule mod_headers.c>\n";
$string .= " Header set Expires \"Sun, 19 Nov 1978 05:00:00 GMT\"\n";
$string .= " Header unset Last-Modified\n";
$string .= " Header append Vary Accept-Encoding\n";
$string .= " Header set Cache-Control \"no-store, no-cache, must-revalidate, post-check=0, pre-check=0\"\n";
if (variable_get('boost_apache_xheader', BOOST_APACHE_XHEADER) > 0) {
$string .= " Header set X-Header \"Boost\"\n";
$string .= " Header set X-Cached-By \"Boost\"\n";
}
$string .= " </IfModule>\n";
$string .= "</FilesMatch>\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment