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
I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.25.2
Plugin version
6.5.0
Node.js version
20.x
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
Mac OS X and Linux Ubuntu
Description
"Accept-Encoding" is always added to Vary for both compressable and non-compressable content-types.
This should only be added if content-type is compressable.
This means, that caching is not working properly in nginx or CDN, because some caching applications (in my case Akamai CDN), will only cache if Content-Encoding is matching Accept-Encoding (in case Accept-Encoding is included in Vary).
For non-compressable content-types these will not match.
"Accept-Encoding" is always added to Vary for both compressable and non-compressable content-types. This should only be added if content-type is compressable.
@rasander Do you have a link to a spec that states this?
"Accept-Encoding" is always added to Vary for both compressable and non-compressable content-types. This should only be added if content-type is compressable.
@rasander Do you have a link to a spec that states this?
Prerequisites
Fastify version
4.25.2
Plugin version
6.5.0
Node.js version
20.x
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
Mac OS X and Linux Ubuntu
Description
"Accept-Encoding" is always added to Vary for both compressable and non-compressable content-types.
This should only be added if content-type is compressable.
This means, that caching is not working properly in nginx or CDN, because some caching applications (in my case Akamai CDN), will only cache if Content-Encoding is matching Accept-Encoding (in case Accept-Encoding is included in Vary).
For non-compressable content-types these will not match.
Steps to Reproduce
Expected Behavior
The text was updated successfully, but these errors were encountered: