Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/05/2015, 12:43
mblascog
 
Fecha de Ingreso: enero-2002
Ubicación: Sabadell
Mensajes: 565
Antigüedad: 22 años, 3 meses
Puntos: 4
Habilitar compresión

Buenas, estoy intentando reducir la velocidad de carga de la página y por ello he añadido lo siguiente al fichero .htaccess, sin éxito, pues testeándola la web, me da que Gzip no está activado.
Alguna sugerencia? Gracias.

Código Apache:
Ver original
  1. <IfModule mod_deflate.c>
  2.     #The following line is enough for .js and .css
  3.     AddOutputFilter DEFLATE js css
  4.     AddOutputFilterByType DEFLATE text/plain text/xml application/xhtml+xml text/css application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp text/html
  5.  
  6.     #The following lines are to avoid bugs with some browsers
  7.     BrowserMatch ^Mozilla/4 gzip-only-text/html
  8.     BrowserMatch ^Mozilla/4\.0[678] no-gzip
  9.     BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  10. </IfModule>
  11.  
  12.  
  13. <ifModule mod_gzip.c>
  14.     mod_gzip_on Yes
  15.     mod_gzip_dechunk Yes
  16.     mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
  17.     mod_gzip_item_include handler ^cgi-script$
  18.     mod_gzip_item_include mime ^text/.*
  19.     mod_gzip_item_include mime ^application/x-javascript.*
  20.     mod_gzip_item_exclude mime ^image/.*
  21.     mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  22. </ifModule>
__________________
Qué fácil cuando lo sabes y qué difícil cuando no