2 ms·
Why would it need a warning? If the HTML provides a new integrity="" hash, then any cached version obviously wouldn't pass. Subresource integrity makes it easie
by pdkl95 11y ago
Why would it need a warning? If the HTML provides a new integrity="" hash, then any cached version obviously wouldn't pass. Subresource integrity makes it easier to determine if a cached file has expired. The file can be permanently cached for any HTML that requests the same hash value(s).
- cbr 11y agoThe browser could do something with this, but I believe it doesn't. Instead the algorithm is just: 1) Load the resource specified in src (from network or cache) 2) If there's an integrity attribute, verify its hash