Gzip compression added without notice
-
Our podcast, which is broadcast to hundreds of radio stations around the world, went down when re-activating the latest version of WP-Optimize. The culprit, I discovered, was the following lines in .htaccess, which affected XML files:
# BEGIN WP-Optimize Gzip compression <IfModule mod_filter.c> <IfModule mod_deflate.c> # Compress HTML, CSS, JavaScript, Text, XML and fonts AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType font/x-woff .woff AddType image/svg+xml .svg AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-font-woff AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE font/woff AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml # Remove browser bugs (only needed for really old browsers) BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html <IfModule mod_headers.c> Header append Vary User-Agent </IfModule> </IfModule> </IfModule> # END WP-Optimize Gzip compressionThere was also an issue with the settings page, because it said it was DISABLED but in fact it was enabled: https://a.cl.ly/jkuXz470
I never enabled Gzip compression here (we’re using Cloudflare).
Deleting the plugin, reinstalling, and then clicking Disable on the settings page fixed the issue (and the settings page). But please don’t ever add lines to .htaccess files without permission.
P.S. It was also very annoying that you enabled the image compression meta-box automatically. I had to disable that manually on dozens of sites.
The page I need help with: [log in to see the link]
The topic ‘Gzip compression added without notice’ is closed to new replies.