Imagine that I visit your homepage. It might have your company logo on it, so my computer will download that logo from your hosting. From the homepage, I click through to the contact page. Chances are that the logo is also used there. Is it really necessary for my computer to go through all the trouble of downloading it again? After all, it’s the same image…

By activating browser caching you can ask my computer to remember this file for e.g. 1 month. Every time I visit a webpage on your website, my computer will load your logo from its cache, instead of downloading it again. And that makes a considerable difference to the speed of your website.

Edit .htaccess

To activate browser caching on your WordPress website, you need access to the source files of your website. You can do this by connecting via FTP. How to get such an account is not explained here, but you can always get it from your hosting provider.

In the base folder of your WordPress project (in this folder you will also find the folders wp-admin, wp-content and wp-includes), you will normally see a small file called .htaccess.

You may edit this file in a text editor such as Notepad. Do not use word processors such as Word!

At the bottom of this file, paste the code below:

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresDefault "access plus 2 days"

Save the file, and send it back to the server so that the changes are live.