| 1 |
<?php |
<?php |
| 2 |
// $Id: boost.admin.inc,v 1.1.2.1.2.3.2.109 2009/11/09 23:47:30 mikeytown2 Exp $ |
// $Id: boost.admin.inc,v 1.1.2.1.2.3.2.110 2009/11/10 21:50:32 mikeytown2 Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 762 |
), |
), |
| 763 |
'#description' => t('Uses <a href="!link">FileETag Directive</a> to set <a href="!about">ETags</a> for the files cached by Boost. <a href="!stack">More info on this subject</a>', array('!link' => url('http://httpd.apache.org/docs/trunk/mod/core.html#fileetag'), '!about' => url('http://en.wikipedia.org/wiki/HTTP_ETag'), '!stack' => url('http://stackoverflow.com/questions/tagged?tagnames=etag&sort=votes&pagesize=50'))), |
'#description' => t('Uses <a href="!link">FileETag Directive</a> to set <a href="!about">ETags</a> for the files cached by Boost. <a href="!stack">More info on this subject</a>', array('!link' => url('http://httpd.apache.org/docs/trunk/mod/core.html#fileetag'), '!about' => url('http://en.wikipedia.org/wiki/HTTP_ETag'), '!stack' => url('http://stackoverflow.com/questions/tagged?tagnames=etag&sort=votes&pagesize=50'))), |
| 764 |
); |
); |
| 765 |
|
$form['htaccess']['boost_apache_xheader'] = array( |
| 766 |
|
'#type' => 'radios', |
| 767 |
|
'#title' => t('Boost Tags'), |
| 768 |
|
'#default_value' => variable_get('boost_apache_xheader', 0), |
| 769 |
|
'#options' => array( |
| 770 |
|
0 => 'Inject boost tags at the bottom of the file', |
| 771 |
|
1 => 'Set Header and tags', |
| 772 |
|
2 => 'Only Set the header', |
| 773 |
|
), |
| 774 |
|
'#description' => t('In order to identify that the page is being served from the cache Boost can: Set a comment at the bottom of the page, indicating that this page is cached by boost; It can also send out a header that will identify any files served from the boost cache; Or it can do both.'), |
| 775 |
|
); |
| 776 |
|
|
| 777 |
// Clear database button |
// Clear database button |
| 778 |
$form['clear'] = array( |
$form['clear'] = array( |
| 972 |
$string .= " <IfModule mod_headers.c>\n"; |
$string .= " <IfModule mod_headers.c>\n"; |
| 973 |
$string .= " Header set Expires \"Sun, 19 Nov 1978 05:00:00 GMT\"\n"; |
$string .= " Header set Expires \"Sun, 19 Nov 1978 05:00:00 GMT\"\n"; |
| 974 |
$string .= " Header set Cache-Control \"no-store, no-cache, must-revalidate, post-check=0, pre-check=0\"\n"; |
$string .= " Header set Cache-Control \"no-store, no-cache, must-revalidate, post-check=0, pre-check=0\"\n"; |
| 975 |
|
if (variable_get('boost_apache_xheader', 0) > 0) { |
| 976 |
|
$string .= " Header set X-Header \"Boost Citrus 1.8\"\n"; |
| 977 |
|
} |
| 978 |
$string .= " </IfModule>\n"; |
$string .= " </IfModule>\n"; |
| 979 |
$string .= " </FilesMatch>\n"; |
$string .= " </FilesMatch>\n"; |
| 980 |
} |
} |