dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5549172
)
Apply live hack from Wikimedia codebase: bump HTTP cache expiry on OpenSearch results...
author
Brion Vibber
<brion@users.mediawiki.org>
Tue, 29 Jan 2008 00:26:13 +0000
(
00:26
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Tue, 29 Jan 2008 00:26:13 +0000
(
00:26
+0000)
opensearch_desc.php
patch
|
blob
|
history
diff --git
a/opensearch_desc.php
b/opensearch_desc.php
index
b06b7fe
..
70e9035
100644
(file)
--- a/
opensearch_desc.php
+++ b/
opensearch_desc.php
@@
-27,8
+27,9
@@
$response->header( 'Content-type: application/opensearchdescription+xml' );
# Set an Expires header so that squid can cache it for a short time
# Short enough so that the sysadmin barely notices when $wgSitename is changed
-$expiryTime =
300; # 5
minutes
+$expiryTime =
600; # 10
minutes
$response->header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + $expiryTime ) . ' GMT' );
+$response->header( 'Cache-control: max-age=600' );
echo <<<EOT
<?xml version="1.0"?>