Skip to content

Rewrite fingerprinted srcset image references#625

Merged
PrzemyslawKlys merged 1 commit into
mainfrom
fix/web-asset-srcset-hashing
Jul 24, 2026
Merged

Rewrite fingerprinted srcset image references#625
PrzemyslawKlys merged 1 commit into
mainfrom
fix/web-asset-srcset-hashing

Conversation

@PrzemyslawKlys

Copy link
Copy Markdown
Member

Summary

PowerForge now rewrites local image candidates in srcset and imagesrcset when asset hashing moves those files to fingerprinted names. It preserves descriptors, query strings, fragments, and inline data: URLs, including descriptorless candidates separated by commas.

This lets PowerForge websites content-hash mutable screenshots and responsive images without leaving references to files that no longer exist.

Validation

  • 13 focused OptimizeDetailed tests pass
  • a new regression contract covers source[srcset], img[srcset], preload imagesrcset, query/fragment suffixes, descriptorless candidates, and data: URLs
  • CasaRay’s strict PowerForge website pipeline passes with 21 fingerprinted assets and a clean rendered-site audit

Review

An independent local review found a data: URL boundary issue. The fix was confirmed, and a directly caused descriptorless-candidate regression was then fixed and covered by the final focused test.

@PrzemyslawKlys
PrzemyslawKlys merged commit 96f6c48 into main Jul 24, 2026
6 checks passed
@PrzemyslawKlys
PrzemyslawKlys deleted the fix/web-asset-srcset-hashing branch July 24, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant