From c19a9d5c55b93f03261c7928918326f98abceab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 23 Jul 2026 21:02:27 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20stop=20Chromium=20dev-rel?= =?UTF-8?q?oad=20cache=20deadlock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Chromium 150's HTTP cache wedges after a handful of reloads of a page that fans out to ~230 separately-served, no-cache-revalidated dev modules (kobalte/corvu ship unbundled): its cache entries lock and every later request queues in the browser forever, so the tab never returns until a fresh URL is opened in another tab. Serve dev responses no-store so the browser never creates the entries. Dev-only; the production build is served by nginx with its own cache headers. --- vite.config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 790f655..b7cbb1f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,6 +12,16 @@ export default defineConfig({ }, }, server: { + // Chromium 150's HTTP cache deadlocks when a page that fans out to ~230 + // separately-served, `no-cache`-revalidated dev modules (kobalte/corvu + // ship unbundled) is reloaded a handful of times in a row: after ~7 + // reloads its cache entries wedge and every later request queues in the + // browser forever — no bytes ever reach vite. `no-store` stops Chromium + // from creating the cache entries at all. Dev-only; the production build + // is served by nginx with its own cache headers. + headers: { + "Cache-Control": "no-store", + }, proxy: { "/api": { target,