Skip to content

[vite] add cache-control to client assets in assetsDir #3585

Closed

Description

@hi-ogawa

Describe the feature

Vite generates immutable hashed static asset under assetsDir https://vite.dev/config/build-options.html#build-assetsdir and it would be nice if Nitro configures cache-control for this asset request by default. I think this is any framework's adapters currently does automatically.

Additional information

  • Would you be willing to help implement this feature?

Activity

  1. added
    pending triage
    on Sep 24, 2025
  2. added
    enhancement
    vite
    and removed
    pending triage
    on Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementvite

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions