Skip to content

[🐞] New preloader /build folder not cached #259

@seleb

Description

@seleb

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, but there appears to be an issue where requests to the /build folder do not receive appropriate cache headers on the response (see here).

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions