Skip to content

Static files cache headers and versioning #30

@unrealbg

Description

@unrealbg

Problem

Static assets lack long-lived cache headers and versioning, causing suboptimal loading and CDN usage.

Proposal

  • Set proper Cache-Control headers for static assets
  • Apply asset versioning (hash or version suffix)
  • Ensure CDN-compatible config

Alternatives considered

  • No versioning, short cache

Acceptance criteria

  • Proper Cache-Control headers set
  • Asset versioning applied (hash or version suffix)
  • CDN-compatible configuration

Technical notes

  • Use StaticFileOptions for headers
  • Integrate with Tailwind build output

Risks

  • Cache busting may fail if config not aligned with build process.

Additional context

Labels: performance, devops

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions