element-hq / element-call

Group calls powered by Matrix
https://call.element.io
GNU Affero General Public License v3.0
591 stars 92 forks source link

Send 'Vary: Content-Encoding' header from nginx #2787

Closed sandhose closed 1 week ago

sandhose commented 1 week ago

Looks like it's not the default. This makes it so that nginx sends Vary: Accept-Encoding header to the client. If we don't do this, Cloudflare will cache the first response with that particular encoding, and not care about the subsequent responses.