Nginx image cache

pcsystemd nginx-forum at forum.nginx.org
Fri Aug 13 09:02:04 UTC 2021


Hello,

We are using Nginx to do proxypath with images that are on an Amazon AWS
server. We have disabled the cache for the following locations:

   location ~ /utle/af/ {
       # no cache
       expires -1;
       rewrite utle/af/(.*) /$1 break;
       resolver 127.0.0.1 valid=10s;
       proxy_pass https://hfufofjfh.cloudfront.net;
       proxy_set_header Host $proxy_host;
    }
    location ~ /ytlo/tt/ {
       # no cache
       expires -1;
       rewrite ytlo/tt/(.*) /$1 break;
       resolver 127.0.0.1 valid=10s;
       proxy_pass https://hfufofjfh.cloudfront.net;
       proxy_set_header Host $proxy_host;
    }

but sometimes we no longer have images displayed on our websites and we do
not have to restart nginx to find the images again!

However when I consult the Nginx logs I do not see a 404 or 403 error, etc.

suddenly we do not manage to know where is the concern? whether it's the AWS
cache side or our Nginx side!

Any idea to suggest to us?

Thanks a lot

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,292221,292221#msg-292221



More information about the nginx mailing list