Hello,
I’m using the fetch
function on the Fetch API to POST to an API that fetches some user information from a database. Because it is a single use, I don’t want it to be cached. When following along in the MDN docs (I’d link to it, but I’m over my link quota) and add the cache
mode for the request to no-store
, I get:
Uncaught (in promise) Error: The 'cache' field on 'RequestInitializerDict' is not implemented.
at fetchFromDb (worker.js:22131:26)
at fetchUserByUsername (worker.js:22175:24)
at doWork (worker.js:22587:15)
Uncaught (in response) Error: internal error
A few questions:
- When fetching
POST
s do you cache the response? - Do you plan on supporting the
cache
mode? - Can you please add to the reference page that changing the
cache
mode is also not supported?
I’m am worried about this response that might be getting cached and web cache poisoning, since it is returning PII data. Also to note, I don’t have control over the response object back being returned from the database, since I am using their REST Endpoints.