Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-03-10 09:58:22 +0400
committermattab <matthieu.aubry@gmail.com>2014-03-10 09:58:22 +0400
commitc1703a107774db816b5a65717ee1d9de394cffa4 (patch)
tree1ab01131e8138f69b95ae8290df942868daad092 /js/index.php
parent91f757858a58ffbc6b52dfd04f7fe70d5ac11313 (diff)
cache /js/ for 10 days rather than none. Refs #2406
From forum feedback: http://forum.piwik.org/read.php?2,112741
Diffstat (limited to 'js/index.php')
-rw-r--r--js/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/index.php b/js/index.php
index cece8a336f..6b03353492 100644
--- a/js/index.php
+++ b/js/index.php
@@ -30,7 +30,7 @@ require_once PIWIK_INCLUDE_PATH . '/core/Loader.php';
$file = '../piwik.js';
// There is no cache buster parameter so we don't set Expires: header
-$expireFarFuture = false;
-ProxyHttp::serverStaticFile($file, "application/javascript; charset=UTF-8", $expireFarFuture);
+$daysExpireFarFuture = 10;
+ProxyHttp::serverStaticFile($file, "application/javascript; charset=UTF-8", $daysExpireFarFuture);
exit;