| 1 |
<?php |
<?php |
| 2 |
// $Id: boost.admin.inc,v 1.1.2.1.2.3.2.112 2009/11/13 20:02:45 mikeytown2 Exp $ |
// $Id: boost.admin.inc,v 1.1.2.1.2.3.2.113 2009/11/13 23:03:35 mikeytown2 Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 988 |
$string .= BOOST_GZIP ? " AddEncoding gzip $_gz\n" : ''; |
$string .= BOOST_GZIP ? " AddEncoding gzip $_gz\n" : ''; |
| 989 |
$string .= " </IfModule>\n"; |
$string .= " </IfModule>\n"; |
| 990 |
} |
} |
| 991 |
if (BOOST_GZIP) { |
// Fix for versions of apache that do not respect the T='' RewriteRule |
| 992 |
if (BOOST_CACHE_HTML) { |
$files = ''; |
| 993 |
$string .= " <FilesMatch \"$html$gz$\">\n"; |
if (BOOST_CACHE_HTML) { |
| 994 |
$string .= " ForceType text/html\n"; |
$files .= "$html|"; |
| 995 |
$string .= " </FilesMatch>\n"; |
if (BOOST_GZIP) { |
| 996 |
|
$files .= "$html$gz|"; |
| 997 |
} |
} |
| 998 |
if (BOOST_CACHE_XML) { |
$files = trim($files, '|'); |
| 999 |
$string .= " <FilesMatch \"$xml$gz$\">\n"; |
$string .= " <FilesMatch \"($files)\">\n"; |
| 1000 |
$string .= " ForceType text/xml\n"; |
$string .= " ForceType text/html\n"; |
| 1001 |
$string .= " </FilesMatch>\n"; |
$string .= " </FilesMatch>\n"; |
| 1002 |
|
} |
| 1003 |
|
$files = ''; |
| 1004 |
|
if (BOOST_CACHE_XML) { |
| 1005 |
|
$files .= "$xml|"; |
| 1006 |
|
if (BOOST_GZIP) { |
| 1007 |
|
$files .= "$xml$gz|"; |
| 1008 |
} |
} |
| 1009 |
if (BOOST_CACHE_CSS) { |
$files = trim($files, '|'); |
| 1010 |
$string .= " <FilesMatch \"$css$gz$\">\n"; |
$string .= " <FilesMatch \"($files)$\">\n"; |
| 1011 |
$string .= " ForceType text/css\n"; |
$string .= " ForceType text/xml\n"; |
| 1012 |
$string .= " </FilesMatch>\n"; |
$string .= " </FilesMatch>\n"; |
| 1013 |
|
} |
| 1014 |
|
$files = ''; |
| 1015 |
|
if (BOOST_CACHE_JSON) { |
| 1016 |
|
$files .= "$json|"; |
| 1017 |
|
if (BOOST_GZIP) { |
| 1018 |
|
$files .= "$json$gz|"; |
| 1019 |
} |
} |
| 1020 |
if (BOOST_CACHE_JS) { |
} |
| 1021 |
$string .= " <FilesMatch \"$js$gz$\">\n"; |
if (BOOST_CACHE_JS) { |
| 1022 |
$string .= " ForceType text/javascript\n"; |
$files .= "$js|"; |
| 1023 |
$string .= " </FilesMatch>\n"; |
if (BOOST_GZIP) { |
| 1024 |
|
$files .= "$js$gz|"; |
| 1025 |
} |
} |
| 1026 |
if (BOOST_CACHE_JSON) { |
} |
| 1027 |
$string .= " <FilesMatch \"$json$gz$\">\n"; |
if ($files != '') { |
| 1028 |
$string .= " ForceType text/javascript\n"; |
$files = trim($files, '|'); |
| 1029 |
$string .= " </FilesMatch>\n"; |
$string .= " <FilesMatch \"($files)$\">\n"; |
| 1030 |
|
$string .= " ForceType text/javascript\n"; |
| 1031 |
|
$string .= " </FilesMatch>\n"; |
| 1032 |
|
} |
| 1033 |
|
$files = ''; |
| 1034 |
|
if (BOOST_CACHE_CSS) { |
| 1035 |
|
$files .= "$css|"; |
| 1036 |
|
if (BOOST_GZIP) { |
| 1037 |
|
$files .= "$css$gz|"; |
| 1038 |
} |
} |
| 1039 |
|
$files = trim($files, '|'); |
| 1040 |
|
$string .= " <FilesMatch \"($files)\">\n"; |
| 1041 |
|
$string .= " ForceType text/css\n"; |
| 1042 |
|
$string .= " </FilesMatch>\n"; |
| 1043 |
} |
} |
| 1044 |
if (BOOST_AGGRESSIVE_GZIP) { |
if (BOOST_AGGRESSIVE_GZIP) { |
| 1045 |
$string .= "\n"; |
$string .= "\n"; |