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

Leverage Browser Cache

Discussion in 'Black Hat SEO' started by rock30, Jun 5, 2016.

  1. rock30

    rock30 Regular Member

    Joined:
    Apr 4, 2013
    Messages:
    425
    Likes Received:
    38
    Code:
    <IfModule expires_module>
        ExpiresActive on
        ExpiresByType text/plain "access plus 1 week"
        ExpiresByType text/css "access plus 1 week"
        ExpiresByType text/javascript "access plus 1 week"
        ExpiresByType application/javascript "access plus 1 week"
        ExpiresByType application/x-javascript "access plus 1 week"
        ExpiresByType image/svg+xml "access plus 1 week"
        ExpiresByType image/gif "access plus 1 week"
        ExpiresByType image/png "access plus 1 week"
        ExpiresByType image/ico "access plus 1 week"
        ExpiresByType image/x-icon "access plus 1 week"
        ExpiresByType image/jpg "access plus 1 week"
        ExpiresByType image/jpe "access plus 1 week"
        ExpiresByType image/jpeg "access plus 1 week"
        ExpiresByType font/truetype "access plus 1 week"
        ExpiresByType application/x-font-ttf "access plus 1 week"
        ExpiresByType font/opentype "access plus 1 week"
        ExpiresByType application/x-font-otf "access plus 1 week"
        ExpiresByType application/font-woff "access plus 1 week"
        ExpiresByType application/vnd.ms-fontobject "access plus 1 week"
        ExpiresByType application/x-shockwave-flash "access plus 1 week"
        ExpiresByType application/x-httpd-php-source "access plus 1 week"
    </IfModule>
    Here is my browser cahe code but google speed insights still gives error.

    /css/font-awesome.css (24 hours)
    /js/custom.js (24 hours)
    /js/wp-embed.min.js (24 hours)

    Please help me in this how to fix it.
     
  2. topcoder

    topcoder Regular Member

    Joined:
    Jan 31, 2012
    Messages:
    203
    Likes Received:
    29
    I think I read about this someplace, I forgot where. Even though you are leveraging caching, your expire times have to be greater then 20 or 30 days. I Forgot which, the times vary on images, css, and js.
     
    • Thanks Thanks x 1