Clear Comet Cache for Langflow
guide2026-06-034 min read
When Langflow looks stale inside Comet, clear the browser’s site data first, then restart Langflow only if the UI still reflects old state.
langflowcometbrowser-cache
Summary
If Langflow behaves as if an old flow, component, or UI bundle is still loaded in Comet, treat the problem in layers. Start by clearing Comet’s site data for the exact Langflow origin, then hard-refresh the page, and only then move on to restarting Langflow or clearing local Python caches.What This Solves
This guide solves the common case where Langflow appears stale in Comet: the page still shows old UI state, old flow metadata, or behavior from before a local restart. The successful outcome is a clean Langflow page load without unnecessarily clearing unrelated browser data or touching project files.Who This Is For
This is for someone running Langflow locally or through a remote URL and opening it in Comet. It assumes you can access the Langflow page and can restart the Langflow process if browser-side cleanup is not enough.Prerequisites
- Access to the Langflow page in Comet.
- The exact URL you use for Langflow, such as
http://localhost:7860orhttp://127.0.0.1:7860. - Terminal access if you need to restart the Langflow server.
The Workflow
Identify the exact Langflow origin
Check the address bar before clearing anything.
localhost, 127.0.0.1, a LAN IP, and a public domain are separate browser origins, so Comet may cache each one independently.Clear site data for only that Langflow origin
In Comet, open the page’s site settings from the address bar, then clear cookies and site data for the Langflow URL. This should remove cached localStorage, cookies, and browser-side state without affecting every site you use.
Hard-refresh the Langflow page
Reload the page with
Cmd + Shift + R. This forces Comet to re-fetch the app shell and assets instead of reusing a cached page load.Repeat for alternate local URLs if needed
If you sometimes open both
http://localhost:7860 and http://127.0.0.1:7860, clear site data for both. Browsers intentionally isolate these origins.Restart Langflow only if the browser cleanup fails
Stop the running Langflow process and start it again. Use the command that matches how you normally run it.If you do not use
uv, start it directly:Common Failure Modes
Final Checklist
- Confirm the Langflow URL you are actually using.
- Clear Comet site data for that exact origin.
- Run a hard refresh with
Cmd + Shift + R. - If using both
localhostand127.0.0.1, clear both. - Restart Langflow only after browser cleanup fails.
- Inspect Python cache folders only if custom components or code changes still do not load.
What To Remember
Treat Langflow cache problems in layers. Browser origin state is the first layer, Langflow process state is the second, and Python/package cache is the last layer. Most Comet-specific stale UI issues are fixed before reaching the last layer.Metadata
Quick Reference
Typeguide
Statuspublished
Date2026-06-03
Retrieval Tags
langflowcometbrowser-cachetroubleshooting
Related
LangFlow SystemsBrowser Cache Debugging