🐛 stop Chromium dev-reload cache deadlock
Browse files at this commitc19a9d5c55b93f03261c7928918326f98abceab1Parent: c41c4bc- fix
- 🐛 stop Chromium dev-reload cache deadlock
1 changed file +10 -0
- vite.config.ts +10 -0
vite.config.tsmodified+10 -0
| @@ -12,6 +12,16 @@ export default defineConfig({ | |||
| 12 | }, | 12 | }, |
| 13 | }, | 13 | }, |
| 14 | server: { | 14 | server: { |
| 15 | + // Chromium 150's HTTP cache deadlocks when a page that fans out to ~230 | ||
| 16 | + // separately-served, `no-cache`-revalidated dev modules (kobalte/corvu | ||
| 17 | + // ship unbundled) is reloaded a handful of times in a row: after ~7 | ||
| 18 | + // reloads its cache entries wedge and every later request queues in the | ||
| 19 | + // browser forever — no bytes ever reach vite. `no-store` stops Chromium | ||
| 20 | + // from creating the cache entries at all. Dev-only; the production build | ||
| 21 | + // is served by nginx with its own cache headers. | ||
| 22 | + headers: { | ||
| 23 | + "Cache-Control": "no-store", | ||
| 24 | + }, | ||
| 15 | proxy: { | 25 | proxy: { |
| 16 | "/api": { | 26 | "/api": { |
| 17 | target, | 27 | target, |