Hello,
I installed WP Super Cache because I recommended it to be more compatible with the theme.
However, I saw that in testing my site was not enabled with the GZIP compression option.
So I thought it was a bug in the plugin, and I installed W3 Total Cache, which allowed for GZIP compression.
However, when I went to see the status of the theme, it said that the speed accelerator was disabled because the “W3 Total Cache” was enabled.
I did the following: Disabled W3 Total Cache and enabled WP Super Cache.
To solve the problem of Gzip compression, I added this code that you recommended in the ‘.htaccess’ file of my site:
<IfModule mod_deflate.c>
<filesMatch "\.(js|css|html|php)$">
SetOutputFilter DEFLATE
</filesMatch>
</IfModule>
I did it right? Why does Super Cache not work to compress the site (GZIP compression) and does W3 Total Cache work? Is there anything else I should add in HTACESS to complete this work?
Why did I realize that when I activated W3 Total Cache, it added dozens of lines in the ‘.htacess’ file, while Super Cache did not add any.
I add this too:
# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 604800 seconds"
ExpiresByType image/jpeg "access plus 604800 seconds"
ExpiresByType image/png "access plus 604800 seconds"
ExpiresByType image/gif "access plus 604800 seconds"
ExpiresByType application/x-shockwave-flash "access plus 604800 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
#ExpiresByType text/html "access plus 600 seconds"
#ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>
# END Expire headers
As I understand it, the difference between W3 Total Cache and WP Super Cache is that it is a specially cached page cache, while the W3 Total Cache also controls the cache in the browser. Am I right?
-
This reply was modified 8 years by
alecaus.
Hello,
Wp super cache is the tested and recommended plugin to usew with our theme. W3 total cache has gzip as a bonus and it is not actually “required” for a caching plugin. WP super cache works just fine without gzip but you need it to increase the page loading speed.
Please only use wp super cache and these settings:
https://forum.tagdiv.com/search/cache/
for cloudflare: https://forum.tagdiv.com/cloudflare-cdn/
As for the gzip compression and other optimization needed for proper page loading speed, please use this guide:
https://forum.tagdiv.com/how-to-make-the-site-faster/
Thank you!