aboutsummaryrefslogtreecommitdiffstats
path: root/en/downloads/get/index.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-08-28 20:15:02 +0000
committerRomain d'Alverny <rda@mageia.org>2012-08-28 20:15:02 +0000
commit733324f120d8a9a31a410ae00680167997d0d16d (patch)
tree15070761721e5a1f526d075cfa82128a26122dea /en/downloads/get/index.php
parentbc229835a43d18c33d54e569506c35375852fabe (diff)
downloadwww-733324f120d8a9a31a410ae00680167997d0d16d.tar
www-733324f120d8a9a31a410ae00680167997d0d16d.tar.gz
www-733324f120d8a9a31a410ae00680167997d0d16d.tar.bz2
www-733324f120d8a9a31a410ae00680167997d0d16d.tar.xz
www-733324f120d8a9a31a410ae00680167997d0d16d.zip
cache management for download redirector
Diffstat (limited to 'en/downloads/get/index.php')
-rw-r--r--en/downloads/get/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php
index 7f57a36f9..ea3ed5ce0 100644
--- a/en/downloads/get/index.php
+++ b/en/downloads/get/index.php
@@ -141,9 +141,12 @@ catch (Exception $e) {
if (!$download) {
header('HTTP/1.0 404 Not Found');
header('Status: 404 Not Found');
- $title = '404 Not Found';
+ header('Cache-Control: public, max-age=600, s-max-age=900');
+ $title = '404 Not Found';
$js_redirect = null;
} else {
+ header('Pragma: no-cache');
+ header('Cache-Control: s-maxage=0, max-age=0, must-revalidate, no-cache');
$title = $product['name'];
}