Wordpress Caching [HELP]

ghackseo

Regular Member
Joined
Mar 18, 2015
Messages
283
Reaction score
73
Hi guys, I've been focusing on my page speed for the last few days, doing all the basics, optimizing images, minifying etc.

However, I use a plugin called Super Cache for Wordpress and I have enabled the caching option, followed numerous online tutorials regarding this plugin but still Googles PageSpeed Insights tell me I need to leverage browser caching... and my speed score is not as good as I want it to be.

Any advice on this? Maybe try W3 Total Cache? Heard it's pretty complex to setup...
 
Open up the .htaccess file under your site root and look for the similar lines:

Code:
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>

If you don't see it, paste it and save the htaccess. If it already has it/doesn't work even after applying the rules, then chances are that mod_expires is not installed on your apache. Hope it helps :)
 
I think that might be the case (the mod_expires not being installed). How would I go about doing this? Ask my hosting provider? I'm not too tech savvy with these type of things, so I'd rather ask someone than google tutorials etc...
 
If you do not have console access, ask your hosters. If you do have console access, login via SSH and type the following

Code:
apachectl -t -D DUMP_MODULES

I guess you're better off asking your hosters.

I think that might be the case (the mod_expires not being installed). How would I go about doing this? Ask my hosting provider? I'm not too tech savvy with these type of things, so I'd rather ask someone than google tutorials etc...
 
I think that might be the case (the mod_expires not being installed). How would I go about doing this? Ask my hosting provider? I'm not too tech savvy with these type of things, so I'd rather ask someone than google tutorials etc...

Asking your hosting provider would be the easiest and most practical solution :D

W3 Total cash is the right plugin you need to check

W3 Total cash is good, but it's too complicated for an average user.
 
great, got it to work :) However, stuck on renderblocking javascript and css as well as optimized images (although I am saving my images for web in photoshop and none of them is over 150kb and im using Smush.it plugin on wordpress)
 
I am also struggling with making my websites faster, this thread does offer some insight which I hope would help me as well.
 
Correct, gave thanks to GoGol for the "leveraging browser cache" solution. However, the mobile speed still says my website is not leveraging browser caching, is there a mobile htaccess script/piece of code for this?
 
Back
Top