3 ms·
Yes, and I don't get the argument against it. The links always include the version in the URL and files are expected to be immutable.
by AtNightWeCode 4y ago
Yes, and I don't get the argument against it. The links always include the version in the URL and files are expected to be immutable.
- prophesi 4y agoThe article brought up some good points. If SRI fails, it simply won't load and thus break your site, which isn't a great outcome. And in organizations, the likely hotfix will be to remove SRI. Not to mention you have to keep track of the hash, which could cause breakage when a newer version is used and the devs don't keep that in mind.
- AtNightWeCode 4y agoTo not run code that somebody else may have changed is the whole point. And it does not fail if you test it first. We are talking about billions of requests every day that is served by external CDN providers.