When debugging a production problem, we found that GET requests to the URL were returned 500 Internal Server Errorfor one user, but returned 200 OKfor everyone else. It turned out that 500 of the cache is being served, but any attempt to reproduce this error was unsuccessful.
My question is: is it possible for the error response to be cached by the browser? If so, which browsers support it and which cache headers will I need to replicate it?
My intuition is that the answer to the error should not be cached, because you will be denied service, even if the error is fixed. Based On Which HTTP Status Codes Are Cacheable? it also seems that 500 should not be cached at all. Is the caching policy consistently implemented in browsers?
source
share