Replies: 0
Hi Frank,
I’ve enabled the pre-gzip by adding in my functions.php:
add_filter(‘autoptimize_filter_cache_create_static_gzip’,__return_true);
I can see via ftp the .gz files have indeed been created.
You say in the FAQs you need to configure your webserver to use these files instead of the non-gzipped ones.
How does one do this?
Currently i have removed the following lines from my htaccess
# Gzip
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css (removed this)
AddOutputFilterByType DEFLATE application/javascript (removed this)
</IfModule>
My thinking was that doing so would mean the server won’t try to gzip css/js. Is this the correct method to use?
When i view the AO files in developer tools it shows they are gzip.
Can you tell me if i have set this up correctly?
Thanks!