ITADN

[🐞] New preloader `/build` folder not cached

#259Closedseleb 创建于 2025-05-29
S
selebcommented
### Which component is affected? Integration ### Describe the bug Hey there! I'm working a project that recently updated to Qwik v1.14, which includes new preloader behaviour. I see this project also updated to support the preloader [here](https://github.com/QwikDev/astro/releases/tag/%40qwikdev%2Fastro%400.8.0), but there appears to be an issue where requests to the `/build` folder do not receive appropriate cache headers on the response ([see here](https://qwik.dev/blog/qwik-1-14-preloader/#2-important-configure-your-cache-control-headers)). ### Reproduction https://github.com/seleb/qwik-astro-build-cache ### Steps to reproduce 1. `npm i` 2. `npm run preview` 3. Open `http://localhost:4321/` 4. Open network devtools 5. Click on the "count is 0" button 6. Inspect any of the `/build/q-[hash].js` requests: All of them will have `Cache-Control: no-cache` ### System Info ```shell System: OS: Windows 10 10.0.19045 CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11980HK @ 2.60GHz Memory: 40.16 GB / 63.71 GB Binaries: Node: 20.12.2 - C:\Program Files\nodejs\node.EXE npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD Browsers: Edge: Chromium (127.0.2651.74) Internet Explorer: 11.0.19041.5794 ``` ### Additional Information Note that I've provided a repo link above, but it's just a starter project with no additional code changes.
关闭于 2026-03-19 1 条评论