Set Vary header? #3

Closed
joliss opened this Issue Sep 29, 2013 · 1 comment

Comments

Projects
None yet
2 participants

joliss commented Sep 29, 2013

Should we set Vary: Accept-Encoding, so the response gets cached correctly by any intermediary proxies (CloudFront, etc.)?

I think the Vary may get blown away if a subsequent handler sets a different Vary (e.g. Vary: Cookie), but perhaps it's still worth setting it to cover for most cases.

Owner

daaku commented Sep 30, 2013

Agreed, it should do that.

@arnaud-lb arnaud-lb added a commit to arnaud-lb/go.httpgzip that referenced this issue Jun 27, 2014

@arnaud-lb arnaud-lb Add a Vary: Accept-Encoding
Fixes #3
d829423

@arnaud-lb arnaud-lb added a commit to arnaud-lb/go.httpgzip that referenced this issue Jun 28, 2014

@arnaud-lb arnaud-lb Add a Vary: Accept-Encoding header
Fixes #3
27aff03

daaku closed this in #4 Aug 14, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment