Fingerprinting and SRI
Fingerprinting and SRI can be applied to any asset file using
resources.Fingerprint which takes two arguments, the resource object and a hash function.
The default hash function is
sha256. Other available functions are
sha384 (from Hugo
Any so processed asset will bear a
.Data.Integrity property containing an integrity string, which is made up of the name of the hash function, one hyphen and the base64-encoded hash sum.