Problema con compresion GZIP
Saludos,
Tengo problemas a la hora de activar la compresion gzip.
He activado el modulo mod_deflate y colocado "zlib.output_compression = On" en todas las versiones de php que manejo.
Sin embargo, a la hora de activar la compresion total del sitio, veo que los archivos html no los comprime:
i.gyazo.com/396738214c6efe8517bf124b1fe4110e.png
He limpiado cache y reiniciado apache pero no da resultado
-
Hello, Can you confirm if you used cPanel >> Optimize Website to enable compression on HTML files? Thank you. Translation: Hola, "Puedes confirmar si usaste cPanel >> Optimizar sitio web para habilitar la compresi"n en archivos HTML? Gracias. 0 -
Si: i.gyazo.com/0c583fc0c68c603e82b8de3753ecae46.png Este es mi .htaccess: # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress # BEGIN WP-HUMMINGBIRD-CACHING ExpiresActive On ExpiresDefault A0 ExpiresDefault A691200 ExpiresDefault A691200 ExpiresDefault A691200 ExpiresDefault A691200 Header set Cache-Control "max-age=691200" Header set Cache-Control "max-age=691200" Header set Cache-Control "max-age=691200" Header set Cache-Control "max-age=691200" # END WP-HUMMINGBIRD-CACHING # BEGIN WP-HUMMINGBIRD-GZIP SetOutputFilter DEFLATE SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding AddOutputFilterByType DEFLATE "application/atom+xml" \ "application/javascript" \ "application/json" \ "application/ld+json" \ "application/manifest+json" \ "application/rdf+xml" \ "application/rss+xml" \ "application/schema+json" \ "application/vnd.geo+json" \ "application/vnd.ms-fontobject" \ "application/x-font-ttf" \ "application/x-font-opentype" \ "application/x-font-truetype" \ "application/x-javascript" \ "application/x-web-app-manifest+json" \ "application/xhtml+xml" \ "application/xml" \ "font/eot" \ "font/opentype" \ "font/otf" \ "image/bmp" \ "image/svg+xml" \ "image/vnd.microsoft.icon" \ "image/x-icon" \ "text/cache-manifest" \ "text/css" \ "text/html" \ "text/javascript" \ "text/plain" \ "text/vcard" \ "text/vnd.rim.location.xloc" \ "text/vtt" \ "text/x-component" \ "text/x-cross-domain-policy" \ "text/xml" AddEncoding gzip svgz # END WP-HUMMINGBIRD-GZIP # php -- BEGIN cPanel-generated handler, do not edit # Configure el paquete "ea-php70" como el lenguaje de programaci"n predeterminado "PHP". AddType application/x-httpd-ea-php70 .php .php7 .phtml # php -- END cPanel-generated handler, do not edit # BEGIN cPanel-generated php ini directives, do not edit # Manual editing of this file may result in unexpected behavior. # To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor) # For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI) php_flag display_errors Off php_value max_execution_time 30 php_value max_input_time 60 php_value max_input_vars 1000 php_value memory_limit 64M php_value post_max_size 20M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php70" php_value upload_max_filesize 15M php_flag zlib.output_compression On # END cPanel-generated php ini directives, do not edit0 -
Hello, Can you run the following command for an HTML page on the domain name and let us know the output? curl -v --compressed http://domain.tld/test.html
Thank you. Translation: Hola, "Puede ejecutar el siguiente comando para una p"gina HTML en el nombre de dominio y dejarnos saber el resultado?curl -v --compressed http://domain.tld/test.html
Gracias.0 -
Hello, Can you run the following command for an HTML page on the domain name and let us know the output?
curl -v --compressed http://domain.tld/test.html
Thank you. Translation: Hola, "Puede ejecutar el siguiente comando para una p"gina HTML en el nombre de dominio y dejarnos saber el resultado?curl -v --compressed http://domain.tld/test.html
Gracias.
Yes [removed]0 -
Hello @50l3r, It looks like this is caused by your custom .htaccess rules generated by the WordPress plugin you are using. Try creating a sample HTML file larger than 120 bytes and access it from a subdirectory to see if the issue persists. If it doesn't, you may want to check with the support team of the WordPress plugin you are using to determine if it's possible to compress pages it's associated with. Thank you. Translation: Hola @ 50l3r, Parece que esto es causado por sus reglas de .htaccess personalizadas generadas por el plugin de WordPress que est" utilizando. Intente crear un archivo HTML de muestra de m"s de 120 bytes y acceda a "l desde un subdirectorio para ver si el problema persiste. Si no es as", es posible que desee consultar con el equipo de soporte del plugin de WordPress que est" utilizando para determinar si es posible comprimir las p"ginas a las que est" asociado. Gracias. 0 -
yes, if i check - Removed - compression works 0 -
Hello, In that case, I recommend consulting with the support or development teams of the particular WordPress script you are using to see if they recommend any changes to their required .htaccess rules to allow for the compression of the pages. Thank you. Translation: Ol", Nesse caso, recomendo consultar as equipes de suporte ou desenvolvimento do script espec"fico do WordPress que voc" est" usando para ver se elas recomendam qualquer altera""o nas regras de .htaccess necess"rias para permitir a compacta""o das p"ginas. Obrigado. 0
Please sign in to leave a comment.
Comments
7 comments