Hacker News new | ask | show | jobs
by antoineMoPa 3616 days ago
I tend not to use CDNs as I feel they could hypothetically allow to track anyone on any website and they could be used to provide backdoors in my apps (hypothetical example: Trump gets elected and decides all the jquery.min.js files sent to Canada via US CDNs have to include something that breaks Canadian apps, then my code stops working). I like to have all my libraries on my server.

It would be awesome if something existed to use this tool while ensuring users do not modify the files

2 comments

> It would be awesome if something existed to use this tool while ensuring users do not modify the files

That should be possible with subresource integrity.

https://developer.mozilla.org/en-US/docs/Web/Security/Subres...

I can't tell you how excited I am for this to be commonplace.
Seems ipfs might give you something like that. Rather than identifying resources by name, you identify them by the hash of their content.