Hola. Gracias por ayudarme. He estado leyendo el texto de la pagina que me indicaste. En local, he puesto este codigo en mi htaccess
Código PHP:
Ver original<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include
file .(html?
|txt
|css
|js
|php
|pl
)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
</ifModule>
Actualizando la pagina, obtengo estos datos de un archivo css con Firebug
Encabezados de respuesta
Connection Keep-Alive
Date Tue, 17 Dec 2013 18:58:08 GMT
Etag "1f194-4e871faf7badd"
Keep-Alive timeout=5, max=99
Server Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7
Encabezados de solicitud
Accept text/css,*/*;q=0.1
Accept-Encoding gzip, deflate
Accept-Language es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3
Cache-Control max-age=0
Connection keep-alive
Cookie __utma=111872281.466048796.1386540207.1386540207.1 386540207.1; __utmz=111872281.1386540207.1.1.utmcsr=(direct)|ut mccn=(direct)|utmcmd=(none); PHPSESSID=jdfpivs0facssi1f5fimroi7f3
Host localhost
If-Modified-Since Fri, 11 Oct 2013 07:22:26 GMT
If-None-Match "1f194-4e871faf7badd"
Referer
http://localhost/colmenar_viejo/
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 FirePHP/0.7.4
x-insight activate
Encabezados de respuesta de la caché
Accept-Ranges bytes
Content-Length 127380
Content-Type text/css
Date Tue, 17 Dec 2013 18:58:08 GMT
Etag "1f194-4e871faf7badd"
Last-Modified Fri, 11 Oct 2013 07:22:26 GMT
Server Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7
Vary User-Agent
Es lo que llevo varios días y no soy capaz de solucionar.