Sitelet https://github.com/flutter/flutter/issues/191915
Skip to content

[web] Support content-hashed static assets in AssetManifest (--web-content-hash) #191915

Description

@kevmoo

Summary

Part of umbrella issue #149031.

Support content-hashing static assets (images, fonts, JSON configs, shaders) placed under assets/ when building Flutter Web with --web-content-hash.

Scope & Requirements

  • Compute SHA-256 content hashes for asset files during flutter build web --web-content-hash.
  • Rename physical files in build/web/assets/ to include content hashes (e.g. assets/images/dash.a1b2c3d4.png).
  • Update the target path mappings in AssetManifest.bin / AssetManifest.json and FontManifest.json.
  • Keep asset lookup keys in user Dart code unchanged (rootBundle.load('assets/images/dash.png')).
  • Enable long-term Cache-Control: max-age=31536000, immutable caching on all static assets under assets/.

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    platform-webWeb applications specifically
    P2Important issues not at the top of the work list
    team-webOwned by Web platform team
    on Aug 27, 2026
  2. added a commit that references this issue on Sep 11, 2026
    bc6e4f0
  3. github-actions commented on Oct 7, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listplatform-webWeb applications specificallyteam-webOwned by Web platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-webTriaged by Web platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions