Skip to content

Changes to sourcemap do not affect asset digest #259

@davidtaylorhq

Description

@davidtaylorhq

When sourcemaps change, their URLs will change. This causes the # sourceMappingURL= comment in the .js file to change. At the moment, this change in .js file content does not cause its digest to be updated.

This causes surprising caching issues, including major problems with SRI. CDN/browser caches are not be invalidated, even though the content of the file has changed. Therefore, the SRI integrity= attribute which Propshaft adds to the HTML may not match the cached version of the asset.

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