Stop cypress injecting cache-control header, so as to test real cache behaviour #14746
Unanswered
d1manson
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see that Cypress adds a few headers to requests, including a cache-control header -
cypress/packages/proxy/lib/http/response-middleware.ts
Line 307 in 810a9b4
I'm sure there is good reason for this, but I'd like to disable it for one particular test to verify my server's own cache headers. (The actual scenario I have is a regression test against something which shouldn't be cached but was).
Is there an easy way to turn off this header injection?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions