js-compute-runtime icon indicating copy to clipboard operation
js-compute-runtime copied to clipboard

The `Vary` response header seems to be getting invalidated when using the HTTP Cache API

Open vcarvajal-sigsci opened this issue 9 months ago • 1 comments

There appears to be a bug with regard to how the vary response header is being handled in using the http caching option. When the flag is set, --enable-http-cache, upon building the package, vary header is invalidated regardless of the use of HTTP Cache API (ie afterSend), however if the flag is not used, it works as expected.

vcarvajal-sigsci avatar Apr 18 '25 15:04 vcarvajal-sigsci

@vcarvajal-sigsci Does this mean that if the --enable-http-cache is used then the vary header is ignored vis a vis caching logic within Fastly? Thanks for any clarification!

twhid avatar May 07 '25 19:05 twhid