Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gateway): Don't cache 302 responses from the registry. (apollogra…
…phql/apollo-server#4325) This affects only the communication with the registry, not with anything related to sending requests to the implementer's graph or its downstream services. A `HEAD` request has no body to cache and a 304 response could have only been negotiated (with the server) by means of a conditional request header (e.g., `if-none-match` or `if-modified-since`). We do NOT want to write to the cache in either of these cases! Without avoiding this cache write, we will invalidate the cache, thus causing subsequent conditional requests (e.g., `If-None-Match: "MD%") to be lacking content to conditionally request against and necessitating a full request/response. Apollo-Orig-Commit-AS: apollographql/apollo-server@4736c18
- Loading branch information