google / sxg-rs

A set of tools for generating signed exchanges at serve time.
Apache License 2.0
83 stars 20 forks source link

Set outer cache-control header #406

Closed twifkak closed 1 year ago

twifkak commented 1 year ago

On SXGs, set an outer header of cache-control: public, max-age=N where N is the computed signature duration. This more easily allows SXGs to be cached downstream by CDNs and crawlers.

I'll file a separate bug for enabling conditional responses since that's trickier.