par
Gico » 13 sept. 2008, 21:52
bonjour, j'essiae d'activer la mise en cache dans les entètes de mon serveur apache, mais ça ne fonctionne pas ; j'ai mis ça dans le fichier htaccess :
Code : Tout sélectionner
ExpiresActive On
ExpiresByType image/gif "A604800"
ExpiresByType image/jpg "A604800"
ExpiresByType image/jpeg "A604800"
ExpiresByType image/png "A604800"
ExpiresByType image/x-icon "A2592000"
ExpiresByType application/pdf "A2592000"
ExpiresByType text/css "A86400"
ExpiresByType text/html "A86400"
ExpiresByType application/x-javascript "A86400"
ExpiresDefault "access plus 1 days"
ça me retourne :
Date: Sat, 13 Sep 2008 19:48:44 GMT
Server: Apache/2.0.54 (Fedora)
X-Powered-By: PHP/5.0.4
Set-Cookie: PHPSESSID=5bkn043h14ivd8uk1dfaqjk893; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
200 OK
une idée comment resoudre ça ? merci
bonjour, j'essiae d'activer la mise en cache dans les entètes de mon serveur apache, mais ça ne fonctionne pas ; j'ai mis ça dans le fichier htaccess :
[code]ExpiresActive On
ExpiresByType image/gif "A604800"
ExpiresByType image/jpg "A604800"
ExpiresByType image/jpeg "A604800"
ExpiresByType image/png "A604800"
ExpiresByType image/x-icon "A2592000"
ExpiresByType application/pdf "A2592000"
ExpiresByType text/css "A86400"
ExpiresByType text/html "A86400"
ExpiresByType application/x-javascript "A86400"
ExpiresDefault "access plus 1 days"[/code]
ça me retourne :
Date: Sat, 13 Sep 2008 19:48:44 GMT
Server: Apache/2.0.54 (Fedora)
X-Powered-By: PHP/5.0.4
Set-Cookie: PHPSESSID=5bkn043h14ivd8uk1dfaqjk893; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
200 OK
une idée comment resoudre ça ? merci