Gzip not working with autoptimize css with query strings
-
First of all, thanks for the plugin!
But I have an issue that’s causing my site to load pretty slowly on mobile.I use Divi, which has a ginormous style.css file with a query string parameter. Autoptimize optimizes it, but apparently it isn’t being gzipped.
I’ve added
add_filter('autoptimize_filter_cache_create_static_gzip','__return_true');
in a code snippet, but it only appears to work when the query string parameter is excluded.Using this site: https://base64.guru/tools/gzip-test, I tested if gzip was enabled for the autoptimized divi css without the query string and it says it is.
Then I tested with the query string and it says it isn’t.Google Pagespeed Insights confirms this, reporting that it takes a whopping 9 seconds to display the first text on my site.
I’m on an nginx server, which, from what I’ve read, doesn’t discriminate by query strings when gzipping, so I can only assume the problem is on WordPress’s end.
I’m using Autoptimize in conjunction with WP Fastest Cache. Any idea if there’s something I’m doing wrong with Autoptimize? Or might this be a problem with the gzipping feature of WP Fastest Cache?
I’m new to all this so thank you ahead of time for any help you can provide!
The page I need help with: [log in to see the link]
- The topic ‘Gzip not working with autoptimize css with query strings’ is closed to new replies.