Welcome! Log In Create A New Profile

Advanced

clear nginx proxy cache for certain url

Posted by sapparod 
clear nginx proxy cache for certain url
December 09, 2009 04:51AM
Hi Guys,

I've configed nginx as reverse proxy. My backend server will return 404.gif if the document not found. And frontend(nginx) remember that url. Later on, I found that the url is missing the upload file in back end. But frontend still remember the 404.gif instead. I want to know is it possible to clear cache for that certain url.

Hope this help to explain thing easier
http://frontend.com/abc.gif ->http://backend.com/404.gif (file not exists but nginx remember 404.gif as abc.gif)

Later on I've upload abc.gif to back end but nginx still not update the cache.

http://frontend.com/abc.gif ---X http://backend.com/abc.gif (nginx still return 404.gif as abc.gif)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 275
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready