Use Chrome DevTools to Diagnose a Stale API Response
An API row showing HTTP 200 does not establish that a new request reached the server. This Chrome DevTools lesson uses a fictional localhost stock report, a controlled server update and a server-side request log to show when an old response is coming from the browser’s HTTP cache.
Keep the cache enabled for the first observation
Open the practice report and DevTools’ Network panel. Leave Disable cache unchecked. Start from the fixture’s initial state, revision 1 with stock 5, and read stock once. Select the API request, inspect its response body and response headers, and note the cache or transfer indicator.
The initial endpoint allows a response to remain fresh for an hour. This is an intentional property of the fixture, not a recommendation for a changing stock endpoint:
Cache-Control: max-age=3600The fixture’s requests.jsonl file records actual server GETs. Inspect it alongside Network rather than equating the number of visible browser rows with the number of backend requests.
Change the server without changing the GET URL
Use the practice control to update the server to revision 2, stock 8. Read stock again with caching still enabled. In the recording, the report continued to display revision 1, stock 5. The cached response’s freshness period allowed reuse even though the server’s underlying state had changed.
Inspect the API row’s body and its transfer/cache indicator. Compare the server log before and after. A cached response can retain a 200 status; that status alone is not evidence of a round trip. An update operation and an earlier cached GET are separate pieces of state.
Use Disable cache to isolate the browser HTTP cache
- With DevTools open, enable Disable cache.
- Read stock again.
- Confirm the response and screen now show revision 2 and stock 8.
- Confirm that a new GET appears in the server log.
The result ties the changed display to a request that actually reached the fixture’s backend. Google documents the Network panel’s cache controls and request inspection features. Disable cache applies during the DevTools diagnostic session; it is not a fix delivered to all visitors.
Change the endpoint policy and test with diagnostics off
For this fixture, switch future API responses to:
Cache-Control: no-cacheno-cache allows storage but requires validation before reuse. It differs from no-store, which directs caches not to store the response. Choose a policy for the endpoint’s requirements rather than treating the two directives as synonyms.
Changing future headers cannot instantly alter an old fresh response already held by a browser. In the recorded test, make a cache-disabled request after the policy change to obtain the updated response and headers. Then turn Disable cache off, read again and verify both the response header and a further backend GET.
This practice server returns the current body on that request. A server that supports validators may instead reply 304 when a stored representation remains valid. The verification question is whether the expected validation or fetch occurred, not whether every successful read must transfer a new 200 body.
Use a small evidence table
| Test | Display | Evidence to check |
|---|---|---|
| Initial read | Revision 1, stock 5 | Response body and hour-long freshness header |
| Read after server update, cache enabled | Still revision 1, stock 5 | Cache indicator and no new backend GET for that read |
| Read with Disable cache | Revision 2, stock 8 | New backend GET and current response |
| Normal read after new no-cache policy is obtained | Revision 2, stock 8 | New backend request with the diagnostic control off |
Keep other cache layers separate
The fictional localhost server has no service worker, reverse proxy or CDN. A real application may have all three, plus client-side state. If disabling the browser HTTP cache does not isolate the problem, inspect those layers separately. Do not claim that a page reload identifies the cause by itself.
For directive definitions, see the Cache-Control reference. Our HTTP health-check diagnosis guide also compares a proposed explanation with actual requests and responses. Browse more workflows in the DrivesHero tutorial library. Keep the original failing observation so that the eventual policy change explains the problem rather than merely making it disappear.
James Kennedy is a writer and product researcher at Drives Hero with a background in IT administration and consulting. He has hands-on experience with storage, networking, and system performance, and regularly improves and optimizes his home networking setup.


