-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Labels
Description
Describe the bug
The Node adapter currently sends back the Vary: Accept-Encoding header as part of the response (when files under /_app like .js and .css files are requested) even when the precompress configuration option is false; meaning even when the response won't vary based on the Accept-Encoding header of the request, which is what Vary: Accept-Encoding is supposed to indicate.
In summary, adapter-node should not include Vary: Accept-Encoding in the response if precompress: false.
Reproduction
Just build a SvelteKit Demo App with adapter-node and send a request using curl -i to some CSS/JS file, and examine the response headers.
Logs
No response
System Info
-Severity
annoyance
Additional Information
No response
Reactions are currently unavailable