I'm caching Node server answers using Nginx proxy cache. Nginx returns a unique 502 page when that server is down. Things are going good so far...
Nginx continues to display the 502 page for five minutes after the Node server comes back online (my cache time). It makes no difference if I remove every file from the cache directory. Nginx breaks the cache and resumes serving real content if I restart it.
Is caching 502s by Nginx normal? Keep in mind that it is only storing the information that the server is unavailable, not a 502 response from the backend server.
How can I put a stop to this?
Please login or Register to submit your answer