Código HTML:
header('Accept-Ranges: bytes'); $segundos_cache = 30 * 60; // media hora $expira = gmdate("D, d M Y H:i:s", time() + $segundos_cache) . " GMT"; header("Expires: $expira"); header("Cache-Control: max-age=$segundos_cache"); header("Cache-Control: public, must-revalidate"); header("Cache-Control: public"); header("pragma: public"); header("Content-Transfer-Encoding:gzip;q=1.0,identity;q=0.5,*;q=0"); header("Cache-Control: cache"); header("Pragma: cache"); header('Content-Type: text/html; charset=utf-8'); header('Vary: Accept-Encoding'); header('x-content-type-options: nosniff'); header('x-frame-options :DENY'); header('x-xss-protection:1; mode=block');
Código:
Pero al cargar la pagina, y mirar las cabeceras tengo esto:Header unset ETag FileETag None <FilesMatch ".(js|css|html|htm|php|xml)$"> SetOutputFilter DEFLATE </FilesMatch> ExpiresActive On ExpiresByType text/html "access plus 1 day" ExpiresByType image/gif "access plus 10 years" ExpiresByType image/jpeg "access plus 10 years" ExpiresByType image/png "access plus 10 years" ExpiresByType text/css "access plus 10 years" ExpiresByType text/javascript "access plus 10 years" ExpiresByType application/x-javascript "access plus 10 years"
Segun eso..no me esta guardando nada en cache...no?
¿Cual puede ser el problema?
Un saludo