1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress Caching [HELP]

Discussion in 'White Hat SEO' started by ghackseo, May 8, 2015.

  1. ghackseo

    ghackseo Regular Member

    Joined:
    Mar 18, 2015
    Messages:
    283
    Likes Received:
    70
    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...
     
  2. felixbcool

    felixbcool Jr. VIP Jr. VIP

    Joined:
    Jan 17, 2014
    Messages:
    192
    Likes Received:
    41
    Gender:
    Male
    PM me...I can help you
     
  3. Gogol

    Gogol Jr. VIP Jr. VIP

    Joined:
    Sep 10, 2010
    Messages:
    3,411
    Likes Received:
    3,057
    Gender:
    Male
    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 :)
     
    • Thanks Thanks x 2
  4. ghackseo

    ghackseo Regular Member

    Joined:
    Mar 18, 2015
    Messages:
    283
    Likes Received:
    70
    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...
     
  5. bukake

    bukake Newbie

    Joined:
    Jun 27, 2013
    Messages:
    42
    Likes Received:
    8
    W3 Total cash is the right plugin you need to check
     
  6. Gogol

    Gogol Jr. VIP Jr. VIP

    Joined:
    Sep 10, 2010
    Messages:
    3,411
    Likes Received:
    3,057
    Gender:
    Male
    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.

     
  7. Seven4

    Seven4 Power Member

    Joined:
    Nov 28, 2013
    Messages:
    684
    Likes Received:
    92
    Asking your hosting provider would be the easiest and most practical solution :D

    W3 Total cash is good, but it's too complicated for an average user.
     
  8. ghackseo

    ghackseo Regular Member

    Joined:
    Mar 18, 2015
    Messages:
    283
    Likes Received:
    70
    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)
     
  9. joplesh

    joplesh Newbie

    Joined:
    May 9, 2015
    Messages:
    9
    Likes Received:
    1
    I am also struggling with making my websites faster, this thread does offer some insight which I hope would help me as well.
     
  10. Vrill

    Vrill BANNED BANNED

    Joined:
    Jun 16, 2013
    Messages:
    380
    Likes Received:
    374
    GoGol posted the solution
     
  11. ghackseo

    ghackseo Regular Member

    Joined:
    Mar 18, 2015
    Messages:
    283
    Likes Received:
    70
    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?