You have just released a change. On your screen, everything looks right. Then a message comes in: "the page looks odd", "I still see the old version", "the menu has gone". Before hunting for a bug in the code, my first piece of advice is simple: test the website in incognito mode, from another device, to see what someone who has never logged in sees.
I bring this up because I have lived it on a project. A site looked normal to the whole team, all logged in to the admin, and it was broken for visitors. The cause was caching. Since then I always check as a visitor, and my content machine does the same after every article. Here is why the gap exists, and the check I run.
01Why your site looks fine on your screen
When you are logged in to your site's admin, you are not a visitor like the others. You have session cookies, sometimes a toolbar, and depending on how the caching tool is set up, the page may be built for you on the fly instead of serving you the stored copy. So you see the fresh version while the rest of the world gets something else.
The reverse happens too. Your own browser keeps files from an earlier visit, and you see an old stylesheet while the new one is live. Either way, your screen does not tell you what the public sees. It is uncomfortable to admit when you made the change yourself, but it is the starting point: the person least well placed to judge a release is often the one who did it.
02The three caches between you and the visitor
A cache keeps a copy so the work does not have to be done again. What causes trouble is the number of copies people forget about.
The browser cache
The browser stores a site's files (scripts, styles, images) and reuses them for as long as they are considered fresh. The `Cache-Control` header decides this. The web.dev guide to the HTTP cache sets out the options: `max-age` sets how long a file stays fresh, `no-cache` forces a check with the server before each use, and `no-store` forbids any copy, CDNs included. It also recommends versioned URLs: a file whose content changes gets a new name, so the browser downloads it again.
The server page cache
On WordPress, this is the job of caching plugins. The official WordPress documentation on caching explains that they save posts and pages as static files, which are then served to visitors to reduce the load on the server. If the copy was taken at the wrong moment, say halfway through an update, that copy is what everyone gets until the next purge.
The CDN cache
A CDN keeps copies in data centres spread around the world, close to visitors. Vercel's documentation on its CDN says it caches pages, API responses and static assets, and that the `x-vercel-cache` header shows the cache state for each response. Cloudflare and the others have their equivalent. So a page can be correct on the server and out of date for a visitor served by another data centre.
03Testing a website in incognito mode, and what it does not prove
Incognito mode is the first test because it costs nothing. Google Chrome Help on Incognito mode describes it well: Chrome starts a separate session, does not sign you in to sites automatically, and removes that session's data when it ends. You arrive with no admin cookie and no old files in the browser. Exactly like a new visitor.
But the test has a limit people quickly forget. It bypasses your browser cache and your session, not the server or the CDN. If the broken copy sits on the server, you will see it in incognito too, which is good news: you can reproduce the problem. If, on the other hand, the page looks fine in incognito, that does not prove everyone sees it that way. A visitor in another country may be served a different copy by the CDN.
I found a sound point in a DebugBear video on cache headers, from a company that sells a performance monitoring tool: test your caching strategy in several browsers, and do not expect too much from the developer tools checkbox that disables the cache, because some caching behaviour stays aggressive. The video pitches its product at the end, but the advice stands without it.
04My check after every release
This is the list I go through. It takes a few minutes and needs no paid tool.
The five steps
- Open the changed page in incognito mode on a computer, without being logged in.
- Open it on a phone over 4G rather than wifi, to go through another network and often another CDN location.
- Look at the response headers in the Network tab of the developer tools: `Cache-Control`, the age of the copy, and the CDN status header if there is one. The Chrome DevTools network reference also shows the checkbox that disables the cache, to emulate a first-time visitor.
- Run the live URL test in Search Console. Search Console Help on the URL Inspection tool notes that a screenshot of the rendered page is only available in a live test. It is one more outside view, Google's.
- Check the public page itself, not the CMS preview: status 200, image, headings, links, footer.
What my content machine does
This blog is published by a content machine I built. After each publication it refreshes the blog cache through a protected route and loads the page once, then I check the public page in French and in English: 200 response, image and alt text, headings, FAQ, Sources section, internal links. The reason is the same as on a client site. A CMS form can hold on to the content you typed when nothing has actually gone out, and a page can be broken for visitors without being broken for whoever is logged in.
I did not come up with this rule out of a love of control. It comes from the project where the team thought everything was fine. It belongs in an acceptance testing and go-live checklist, alongside the functional tests, and in the go-live cutover plan.
05When the problem is the WordPress cache or the CDN
If the page is broken in incognito too, the server or CDN cache is the first suspect. I work in this order:
- purge the WordPress plugin cache (or the equivalent tool), then reload in incognito;
- purge the CDN cache from its dashboard, and check that the status header shows a fresh copy;
- if styles or scripts look old, see whether their URLs change with each version. Without a versioned name, a file can stay cached for a long time, as web.dev explains;
- if a page must always be fresh (a basket, a customer account), check that it is not cached at all.
An honest limit: I do not know every setting of every caching plugin, and I do not fix this kind of problem blind. When the site runs on hosting I do not control, I document what I see (URL, headers, time, screenshot) and pass it to the host. Purging everything all the time is not a fix either: you lose the speed the cache gives you, and that costs you elsewhere, as I explain in the article on site speed and Google's loading metrics.
If you are still choosing a platform, how each one handles caching is one of the criteria I compare in WordPress vs Webflow.
06Where to start after your next release
On Monday, or at your next change, do just two things: open the page in incognito mode, then on your phone over 4G. If both show the right version, note it down. If not, you already know the problem sits between the server and the visitor, not on your screen.
Then add the five steps to your release checklist, and decide who on the team runs them. This is what I set up on my technical direction projects, described on the services page, and you can see traces of it in my projects. If your site is playing tricks on your visitors, we can talk about it.
