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.
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-includes), you will normally see a small file called
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:
Save the file, and send it back to the server so that the changes are live.