News for hackers. Stuff that matters.
Re:Subresource Integrity by mastahyeti on Friday September 18, 2015 @02:51PM (#10241293)
This isn't a concern with our implementation because a hash of the asset bundle is also included in the URL. This is a pretty common cache-busting technique for static assets and lets you send more aggressive cache directives to the browser.
Re:Subresource Integrity by bsimpson on Friday September 18, 2015 @03:02PM (#10241355)
D'oh; that makes sense.

Maybe I should refrain from posting my gut reactions (or at least wait until I'm awake first). =)

Re:Subresource Integrity by skrebbel on Friday September 18, 2015 @03:07PM (#10241384)
No, it was a very good point. Not everyone adds hashes to filenames, and to me it seems that you're right in that weird caching can break pages that way.

If indeed this is the case, subresource integrity needs a big warning sign about that. For me, your comment was that warning sign, so please keep posting while you're not awake yet.

Re:Subresource Integrity by pdkl95 on Saturday September 19, 2015 @12:14AM (#10243267)
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).
Re:Subresource Integrity by cbr on Saturday September 19, 2015 @09:44AM (#10244262)
The 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