solve google speed insights problem

1

google speed insights shows this error: "Take advantage of browser cache Setting an expiration date or a maximum age in HTTP headers for static features instructs the browser to load previously downloaded resources from the local disk and not through the network. Take advantage of your browser's cache for the following features that can be cached: " Which plugin solves this, or if there are no plugins, what is the best way to solve this problem ?? hug to everyone!! Thank you for your attention!

    
asked by anonymous 27.08.2018 / 16:41

1 answer

1

Hi, Horace.

It is not exactly plugin to be installed. The standards that influence PageSpeed are well explained in the WebPageTest.Org and GTMetrix sites.

In your case, the .HTAACESS file should resolve. Create a file named ".htaaccess" in the main folder of your site with the example code below.

What will happen?

When the browser loads the site, the htaacess file will indicate that some files can be cached by X time.

<IfModule mod_expires.c>
  ExpiresActive on
  ExpiresDefault                          "access plus 1 month"
  ExpiresByType text/xml                  "access plus 0 seconds"
  ExpiresByType application/xml           "access plus 0 seconds"
  ExpiresByType application/json          "access plus 0 seconds"
  ExpiresByType image/x-icon              "access plus 1 week"
  ExpiresByType image/gif                 "access plus 1 month"
  ExpiresByType image/png                 "access plus 1 month"
  ExpiresByType image/jpeg                "access plus 1 month"
  ExpiresByType video/ogg                 "access plus 1 month"
  ExpiresByType audio/ogg                 "access plus 1 month"
  ExpiresByType video/mp4                 "access plus 1 month"
  ExpiresByType video/webm                "access plus 1 month"
  ExpiresByType application/x-font-ttf    "access plus 1 month"
  ExpiresByType font/opentype             "access plus 1 month"
  ExpiresByType application/x-font-woff   "access plus 1 month"
  ExpiresByType image/svg+xml             "access plus 1 month"
  ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
  ExpiresByType text/css                  "access plus 1 year"
  ExpiresByType application/javascript    "access plus 1 year"
</IfModule>
    
27.08.2018 / 18:45