You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to compute allowed-alt-sxg because authors won't have done this already. It is necessary to support prefetching subresources from webpkgcache.com by way of subresource substittution.
For each preload, the worker needs to:
Look up its URL in a header-integrity cache in the KV store.
If missing, fetch the URL, compute its header-integrity per this definition and store it in the cache.
For a first version, set an expiry of 1 day.
Ideally, use an expiry matching the subresource's cache-control header.
The KV store minimizes the # of backend fetches caused by this feature.
1. Strip invalid link headers (DONE in #43)
The worker should process the
Link
header before signing, in order to make it compatible with Google SXG Cache requirements. In particular, it should:preload
andallowed-alt-sxg
.2. Add
allowed-alt-sxg
(DONE in #57 and #61)We want to compute allowed-alt-sxg because authors won't have done this already. It is necessary to support prefetching subresources from webpkgcache.com by way of subresource substittution.
For each preload, the worker needs to:
header-integrity
cache in the KV store.header-integrity
per this definition and store it in the cache.cache-control
header.The KV store minimizes the # of backend fetches caused by this feature.
3. Stabilizeheader-integrity
Split off to #26. DONE in #36.
The worker should also eliminate frequently changing response headers that don't affect the semantics of the SXG (e.g.Date
). Resources for researching which headers to eliminate:- https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Response_fields- https://datatracker.ietf.org/doc/html/rfc7230 and friends4. Fix docs. (PENDING in #61)
Then the sentence at the end of #4 can be reverted.
The text was updated successfully, but these errors were encountered: