Skip to content

Use content-hashed filenames for production static assets #1387

Description

@zih-syuan

Production previously served static assets with long-lived immutable caching while reusing the same filenames across deployments. This could cause browsers to combine a new HTML document with outdated JavaScript, CSS, or worker files.

Commit 69b3786 mitigated the problem by requiring static assets to be revalidated. This is a short-term workaround rather than the intended long-term caching strategy.

A future build/deployment improvement should:

  • generate content-hashed filenames for JavaScript, CSS, and worker assets;
  • update generated HTML and worker references accordingly;
  • restore long-lived immutable caching for hashed assets.

This is not currently blocking production, but would provide reliable cache invalidation without sacrificing long-term caching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Severity: LOWMinor problem or a feature that would make life easier.enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions