Welcome! Log In Create A New Profile

Advanced

Nginx image cache

August 13, 2021 05:02AM
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
Subject Author Posted

Nginx image cache

pcsystemd August 13, 2021 05:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready