26/10/2015, 09:46
|
| | | Fecha de Ingreso: abril-2014
Mensajes: 36
Antigüedad: 10 años, 7 meses Puntos: 0 | |
Respuesta: Especificar caché de navegador ¿Como hacerlo correctamente? Cita:
Iniciado por lauser Solo eso?????
Revisa esto:
Código Apache:
Ver original<ifModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript application/json AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf AddOutputFilterByType DEFLATE font/truetype font/opentype </ifModule> <ifModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 300 seconds" ExpiresByType text/html "access plus 600 seconds" ExpiresByType image/gif "access plus 604800 seconds" ExpiresByType image/ico "access plus 604800 seconds" ExpiresByType image/jpeg "access plus 604800 seconds" ExpiresByType image/jpg "access plus 604800 seconds" ExpiresByType image/png "access plus 604800 seconds" ExpiresByType text/css "access plus 604800 seconds" ExpiresByType text/javascript "access plus 604800 seconds" ExpiresByType application/x-javascript "access plus 604800 seconds" ExpiresByType application/javascript "access plus 604800 seconds" ExpiresByType application/xhtml+xml "access plus 600 seconds" </ifModule> <ifModule mod_headers.c> Header set Connection keep-alive <filesMatch "\\.(ico|pdf|flv|jpg|jpeg|png|gif|svg|swf)$"> Header set Cache-Control "max-age=2592000, public" </filesMatch> <filesMatch "\\.(css)$"> Header set Cache-Control "max-age=604800, public" </filesMatch> <filesMatch "\\.(js)$"> Header set Cache-Control "max-age=604800, private" </filesMatch> <filesMatch "\\.(xml|txt)$"> Header set Cache-Control "max-age=604800, public, must-revalidate" </filesMatch> <filesMatch "\\.(html|htm|php)$"> Header set Cache-Control "max-age=1, private, must-revalidate" </filesMatch> </ifModule>
Bien yo probé este código pero nada el analizador sigue mostrando el mensaje que especifique cache. |