Enabled pre-gzip for generated CSS/JS
-
Hello,
Thank you for this very very useful plugin. Works perfectly !
I came here refering to the faq about this point :
Can the generated JS/ CSS be pre-gzipped?
Yes, but this is off by default. You can enable this by passing ´true´ to ´autoptimize_filter_cache_create_static_gzip´. You’ll obviously still have to configure your webserver to use these files instead of the non-gzipped ones to avoid the overhead of on-the-fly compression.
I have monitored my waterfall and realised that the main css file is served 10% of the true size.
So, I guess this is gzipped file ?
BUT, looking at autoptimizeCache.php, the filter ´autoptimize_filter_cache_create_static_gzip´ is set to false.My questions :
How can the webserver serves generated gzipped files if this set to false ( .htaccess ?) ?
Should I take care of it if my received CSS is already 10% of the one on the server ?
Why is this filter made for and when ?After modifying the filter to true, how can I configure my webserver to be sure to use these files (that I can see in /wp-content/cache/autoptimize/js or /css) ? and be sure the compressed version is used and uncompressed by the browser ?
Thank you very much
The topic ‘Enabled pre-gzip for generated CSS/JS’ is closed to new replies.