I want that Redis will store also 404 errors. I have added the following directives to my nginx configuration file:
srcache_store_statuses 200 301 302 404;
For 200 status code for example, I can see X-Cached header in the response (HIT, BAYPASS, etc). However, I cannot see this header for 404 status code. I confirm that according to Redis logs, It seems that the configuration works properly (I can see PUT and GET calls for 404 error).
I want that Redis will store also 404 errors. I have added the following directives to my nginx configuration file:
srcache_store_statuses 200 301 302 404;
For 200 status code for example, I can see
X-Cached
header in the response (HIT
,BAYPASS
, etc). However, I cannot see this header for 404 status code. I confirm that according to Redis logs, It seems that the configuration works properly (I can seePUT
andGET
calls for 404 error).What could be the issue?
Here is the
server.conf
file: