aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-06 22:46:58 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-06 22:46:58 +0100
commit3fdb20b0811e7c836f4069b7643fa6ac9db87163 (patch)
tree65c3954d3f7dfdbf8111c9d5a07bee6561b0cdca
parentdd79b163fdec7fcf281492b4881b0c84dda39eeb (diff)
Cache des icônes : uniformisation à 1 mois
Rarement conservé si longtemps par le navigateur de toute manière
-rw-r--r--public/.htaccess2
-rw-r--r--public/f.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/public/.htaccess b/public/.htaccess
index 8653826f8..fefe8b226 100644
--- a/public/.htaccess
+++ b/public/.htaccess
@@ -27,7 +27,7 @@ AddDefaultCharset UTF-8
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
- ExpiresByType image/x-icon "access plus 1 year"
+ ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
<FilesMatch "\.php$">
diff --git a/public/f.php b/public/f.php
index 85e73113a..a56d58617 100644
--- a/public/f.php
+++ b/public/f.php
@@ -65,6 +65,6 @@ require(LIB_PATH . '/http-conditional.php');
header('Content-Type: image/x-icon');
header('Content-Disposition: inline; filename="' . $id . '.ico"');
-if (!httpConditional($icoMTime, 31557600, 2)) {
+if (!httpConditional($icoMTime, 2592000, 2)) {
readfile($ico);
}