On a related note, the fingerprint doc doesn’t say whether processed image resources should be fingerprinted. It’s unclear because processed images seem to have some kind of hash in their name. I’ve been fingerprinting them just in case, since the image processing doc doesn’t specify the file name at all. It would be useful for the doc to say what’s recommended to do.
Note: A future revision of this specification is likely to include integrity support for all possible subresources, i.e., a , audio , embed , iframe , img , link , object , script , source , track , and video elements.
Is that actually a hash, like MD5 or SHA1? Will it always be there, such that it’s safe to never use fingerprint on it? I can’t tell from the API documentation.
You might want to read up about the usage of the integrity attribute, as @jmooring suggested. There’s currently no point in calculating the fingerprint of an img since it doesn’t have an integrity attribute (yet?).
You might want to read up about the usage of the integrity attribute, as @jmooring suggested. There’s currently no point in calculating the fingerprint of an img since it doesn’t have an integrity attribute (yet?).
@chrillek The fingerprint function is, in part, for making a resource URL change when the file content changes, e.g. .css or .js. It can also be used for unprocessed images like .jpg. My question was whether it needs to be used for processed images too.
Edit: Changing the file name when the contents change ensures that browsers don’t cache old content.