Browse Source

Cache des icônes : uniformisation à 1 mois

Rarement conservé si longtemps par le navigateur de toute manière
Alexandre Alapetite 12 years ago
parent
commit
3fdb20b081
2 changed files with 2 additions and 2 deletions
  1. 1 1
      public/.htaccess
  2. 1 1
      public/f.php

+ 1 - 1
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$">

+ 1 - 1
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);
 }