A Beginner’s Guide to Browser Caching

The same website open on a laptop and a phone side by side

Page caching speeds up the first visit to your site. Browser caching speeds up every visit after that. Together, they are the one-two punch of web performance — and both should be enabled on every WordPress site.

What Is Browser Caching?

When a browser loads a web page, it downloads the HTML, CSS, JavaScript, images, fonts, and other assets that make up the page. Without browser caching, the browser downloads all of these assets again on the next visit — even if nothing has changed. With browser caching, the server tells the browser “you can keep this file for a week” or “this file will not change for a month,” and the browser loads it from its local cache instead of downloading it again.

The result: repeat visitors see your pages load almost instantly, because the heavy assets — images, stylesheets, scripts — are already on their device.

Cache-Control Headers Explained

Browser caching is controlled by HTTP headers — specifically, the Cache-Control header. The server includes this header with every response, telling the browser how long it can keep the file. A typical configuration might set CSS and JavaScript files to cache for one year, images for one month, and HTML to not cache at all (so content updates are visible immediately).

You do not need to understand the headers to benefit from them. Caching Out adds the correct Cache-Control and Expires headers with a single toggle. The defaults behind that toggle are sensible for every WordPress site, and you can adjust the durations if you have specific requirements.

Browser Caching + Page Caching = Maximum Speed

Page caching makes the first visit fast. Browser caching makes the second visit faster. Together, they mean that a visitor who comes to your site, reads a blog post, and clicks through to another page experiences near-instant loads on every page after the first. The HTML is served from the page cache, and the CSS, JavaScript, and images are served from the browser cache. The server does almost no work.

Further reading: How Page Caching Works (and Why Your Site Needs It) for the server-side half of the caching equation.

More from the blog

Ready when you are

One plugin, every optimisation, from $59 a year.

Install it, turn on what you need, and measure the difference on your own site. If it does not do what this site says, the 14-day guarantee means you get your money back.

  • No code required
  • Setup in under 3 minutes
  • 14-day money-back guarantee
  • 14-day money-back guarantee
  • Works on standard shared and managed hosting
  • Cancel anytime

Free edition · WordPress.org

Get Caching Out for free

Good call. Page caching is the biggest single speed win, and it is on the moment you activate. Two ways to install the free edition:

Option 2

Upload the zip

Download the plugin zip, then go to Plugins → Add New Plugin → Upload Plugin and choose the file.

Download free plugin (.zip)

After you activate, caching is already running. Open Caching Out → Setup Wizard to see what is on and why.

Want every feature from day one? Pro from $59/yr