From 733324f120d8a9a31a410ae00680167997d0d16d Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Tue, 28 Aug 2012 20:15:02 +0000 Subject: cache management for download redirector --- en/downloads/get/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'en') 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']; } -- cgit v1.2.1