3 ms·
That's a cool idea, but it comes with a lot of overhead. Javascript files are one of the most heavily-cached on the web, and by signing them with PGP, you cripp
by chatmasta 12y ago
That's a cool idea, but it comes with a lot of overhead. Javascript files are one of the most heavily-cached on the web, and by signing them with PGP, you cripple your caching ability.
Or am I missing something?
- sarciszewski 12y agoThe original idea I had was to have an index (think hybrid cache.manifest and Content-Security-Policy header) of relative URLs and their SHA3 hashes, then that file was signed. If anything fails to validate, it doesn't run.
- Retric 12y agoSigning just prevents you from altering the files so you can cache them just fine.
- martindale 12y agoYou could also just sign the hash.