SiteCheck

Guides · Speed

How to let browsers reuse your files

When someone comes back to your site, their browser can reuse files it saved on the last visit, or it can download them again. Your server tells the browser which to do through a header called Cache-Control.

Your report can raise two separate findings about this. Fixing one does not clear the other.

What the two findings mean

"Browsers are not told how long to keep the page" is about the page itself. Our scan looked at the page's response and found no Cache-Control header. Any Cache-Control value clears this finding.

"Returning visitors download the same files again" comes from Google's speed test. It is about images, scripts and stylesheets with a short lifetime or none. To see the file names, run the same page at pagespeed.web.dev, Google's free test.

First visit and repeat visitOn a first visit the browser downloads the page and all its files. On a repeat visit it asks the server about the page and reuses the saved image, script and stylesheet. First visit: every file downloads Page Download Image Download Script Download Stylesheet Download Repeat visit: saved files are reused Page Asks server Image Good: reused Script Good: reused Stylesheet Good: reused Time (example, not to scale)
A repeat visit, with a page set to check first and files set to a long lifetime.

Which settings suit which files

Pages change often, so give them a short lifetime or none:

Images, scripts and stylesheets change less often, so they can have a long lifetime:

If you replace a file at the same address, returning visitors may see the old one until the long lifetime runs out. Saving the new file under a new name avoids this.

How to set them

On WordPress, the settings usually live with your host or in a cache plugin. SEO plugins such as Yoast and Rank Math do not handle them. Many hosts offer the setting in their control panel, and it may also be in your CDN.

If you have a developer or host, you can ask them to do this:

  1. Send a Cache-Control header with every page: a short value above for public pages, and no-store for account, cart and checkout pages.
  2. Send a long lifetime for images, scripts and stylesheets.
  3. Use the one-year value for files with versioned names.

Shopify, Wix and Squarespace manage these headers themselves, and their owners usually cannot change them. Wix says it caches site resources automatically on its CDN.

On any platform, some files that test names may come from other companies, such as analytics tools, chat widgets or store apps. Those companies set the lifetimes, so you can only keep the tool or remove it.

How to check

  1. Open your page in Chrome, then open the developer tools and go to the Network tab.
  2. Click a file and read Cache-Control under its response headers.
  3. Visit the page again from a new tab. Reused files show "disk cache" or "memory cache" in the Size column.

Then press Rescan on your report to run both checks again.