-
Notifications
You must be signed in to change notification settings - Fork 16
Description
I'm working on implementing signed exchanges for a website and I have a question and maybe a potential feature requests. Most of the HTML I'm serving has an expiration date of just a few days, however a lot of static content (hashed) uses 365 days. Signed exchanges can be generated for both, however in front of my Nginx servers I also have a load balancer with CDN capabilities. If it starts caching requests for signatures, then these will be stale. I couldn't find a way to differentiate expires and cache-control headers based on the fact if it's an SGX request or not. Should the module automatically set cache-control and expires to a reasonable value?
To make it more clear, that's my setup:
- Nginx servers in 12 geographical regions worldwide
- Google Cloud HTTPS load balancer
- Google Cloud CDN
Requests made from AMP caches would also end up on the load balancer and possibly be served by the CDN, unless there's a way I can prevent that from happening.