Skip to content

Debugging

The page still shows old data after a save

You save, the database changes, and the screen shows the old value until a hard refresh.

What you get
Every layer that can hold an old copy checked, and the one that isn’t being refreshed fixed.
Paste it into
Your AI tool, in your project
The prompt
After saving a change in my app, the page keeps showing the old value until I hard-refresh, or longer.

Follow one save from the button to the database and back to the screen. Check each place an old copy could live: component state, a client-side data cache, the framework's page or fetch cache, a CDN, and the browser. Tell me which one is serving the stale value and how you know.

Fix it at that layer by refreshing exactly what changed, not by turning caching off everywhere. Then check the other screens that show the same data, and tell me which pages are still cached on purpose and for how long.

Use it

Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.

More in Debugging