Optimizing WordPress with W3 Total Cache and GTMetrix

Video is ready, Click Here to View ×


We show you how to speed up and optimized your WordPress installation using the popular W2 Total Cache Plugin – and use the GTMetrix plugin to test and quantify our results.

8 Comments

  1. After enabling page cache my website was a lot faster but after ticking a few more boxes my website crashed and now reads

    "The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log."

  2. Here'a the more precise and detailed code I'm using:

    # Expires headers

    <IfModule mod_expires.c>

        ExpiresActive on
        ExpiresDefault                                      "access plus 1 month"

      # CSS
        ExpiresByType text/css                              "access plus 1 year"

      # Data interchange
        ExpiresByType application/json                      "access plus 0 seconds"
        ExpiresByType application/xml                       "access plus 0 seconds"
        ExpiresByType text/xml                              "access plus 0 seconds"

      # Favicon (cannot be renamed!)
        ExpiresByType image/x-icon                          "access plus 1 week"

      # HTML components (HTCs)
        ExpiresByType text/x-component                      "access plus 1 month"

      # HTML
        ExpiresByType text/html                             "access plus 0 seconds"

      # JavaScript
        ExpiresByType application/javascript                "access plus 1 year"

      # Manifest files
        ExpiresByType application/x-web-app-manifest+json   "access plus 0 seconds"
        ExpiresByType text/cache-manifest                   "access plus 0 seconds"

      # Media
        ExpiresByType audio/ogg                             "access plus 1 year"
        ExpiresByType image/gif                             "access plus 1 year"
        ExpiresByType image/jpeg                            "access plus 1 year"
        ExpiresByType image/png                             "access plus 1 year"
    ExpiresByType image/ico                             "access plus 1 year"
        ExpiresByType video/mp4                             "access plus 1 year"
        ExpiresByType video/ogg                             "access plus 1 year"
        ExpiresByType video/webm                            "access plus 1 year"

      # Web feeds
        ExpiresByType application/atom+xml                  "access plus 1 hour"
        ExpiresByType application/rss+xml                   "access plus 1 hour"

      # Web fonts
        ExpiresByType application/font-woff                 "access plus 1 month"
        ExpiresByType application/vnd.ms-fontobject         "access plus 1 month"
        ExpiresByType application/x-font-ttf                "access plus 1 month"
        ExpiresByType font/opentype                         "access plus 1 month"
        ExpiresByType image/svg+xml                         "access plus 1 month"

    </IfModule>

  3. Hi, I've followed your video in attempt to improve upon my wp site's overall optimization but as a result, yest my scores are higher but now my home page slider does not show? Can you provide me some guidance on this? thanks kindly my email is contactglw@yahoo.com if you need to email me. My name is Grant.

  4. ## EXPIRES CACHING ##
    <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>
    ## EXPIRES CACHING ##

  5. The code that is missing is as follows;

    ## EXPIRES CACHING ##

    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 application/pdf "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 2 days"

    ## EXPIRES CACHING ##

Leave a Reply

Your email address will not be published.


*