Leverage Browser Caching

By setting this, you tell your visitors browsers to remember (caching) some of your website resources (that you don’t change so often, like the logo or the CSS/JS libraries, posted images, and many more) and only refresh them after a defined period.

You can add the following lines to the .htaccess file of your WordPress in order to enable this technique. You can find your .htaccess file at the root of your WordPress site via FTP.

## EXPIRES HEADER 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 image/x-icon "access 1 year"
ExpiresByType text/css "access 1 year"
ExpiresByType text/x-javascript "access 1 year"
ExpiresByType text/javascript "access 1 year"
ExpiresByType application/javascript "access 1 year"
ExpiresByType application/x-shockwave-flash "access 1 year"
ExpiresByType application/x-font-woff "access 1 year"
ExpiresByType application/x-font-svg "access 1 year"
ExpiresByType application/pdf "access 1 year"
ExpiresByType text/html "access 1 year"
ExpiresDefault "access 2 days"
</ifModule>
## EXPIRES HEADER CACHING ##