Cache
Written by Andy Sim
Last updated
A cache is a stored copy of something so that it can be delivered faster the next time, without rebuilding it from scratch. Websites use caches at several levels: in your browser, on the server and on a network of servers close to the visitor.
When a visitor opens a page, parts of it such as the logo, styles and images can be saved on their device, so the next page needs less downloading. The server can also keep a finished copy of a page instead of building it from the database for every visit. The catch is that a cached copy can be out of date until it is cleared.
Examples
- Browser caching so your logo is downloaded once, not on every page.
- A page cache that serves a finished page in milliseconds.
- Clearing the cache after you change a price so that visitors see the new one.
Why it matters for your website
Caching is one of the easiest ways to make a site faster and to handle more visitors on the same hosting. If you change a page and still see the old version, the cache is the first thing to clear.