amppackager
amppackager copied to clipboard
Option for a cache-busting cert-url
trafficstars
Consider an option to include ?YYYYMMDD in the cert-url so that it busts any caches that don't respect the cache-control header.
Maybe better yet, base it on the OCSP response (checksum? timestamp?).
I'm not sure what problem this was originally trying to solve, to know if it's worth doing the hacky thing above.
The less hacky thing could be useful in the long-term (e.g. for WICG/webpackage#121):
- [ ] Add a new option in amppkg.toml,
UniqueCertURLs(default false) that, if enabled, causessigner.goto output SXGs withcert-urlthat includeid=blah, whereblahis the base64 encoding of the sha256 of the entire CBOR. - [ ] Add some code in
certcache.go:ServeHTTPto refuse to serve ifidis present and incorrect.
(base64(sha256(cbor)) is a strawman digest; others would be fine.)