TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Subresource Integrity Sample

34 pointsby mondainxalmost 10 years ago

2 comments

zacwestalmost 10 years ago
I&#x27;m curious what is the use case.<p>If it&#x27;s 3rd-party resources, wouldn&#x27;t this make things like Google Analytics unable to be updated if they use hashes? I guess this must be mostly targeted at resource hosts who modify resources maliciously, but how often does that occur?<p>If it&#x27;s 1st-party resources, wouldn&#x27;t SSL better handle the authenticity part? If they can modify resources you&#x27;re loading but hashing, surely they can modify the resource delivering those.
评论 #9958711 未加载
rolleralmost 10 years ago
Will chrome be using this as a cache hint? It might be an explicit way to signal a change, but the real benefit would be to dedupe every resource on the Internet. If I have a cached resource with a matching sha256, do I really need to make another request?
评论 #9958781 未加载