Skip to content

Add caching

Shiv Jha-Mathur requested to merge (removed):add-caching into main

Running posthtml-sri on multiple files with remote assets adds a lot of latency: it fetches the assets and computes the integrity values anew for each input file. This MR adds a cache parameter. It also adds a fetch parameter; I used it for testing, but it’s possible someone else might find a different use for it.

Merge request reports