I have vps server it supports gzip. before I have both super cache and wp cache enabled, I can see my homepage is gziped. For some reasons, if super cache is on, I add new post but homepage never updated. I turned super cache off. now I checked again homepage is not gziped.
I checked my .htaccess, yes rite now, it only gzip it if its super cached.
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
I am pretty sure I just need to modify my .htaccess file, but dotn know how to do it. btw, I also want to gzip .css and .js files and is it a good idea to gzip images ?
thank you for your help.