I have a basic nginx as a reverse proxy which all it does is adding header to requests and proxy pass. I have there my domain as the server_block.
If lets say the environement fall, i want to change the ip of my domain, so everything will still work and i only have to change the ip of my domain and nothing more.
Now, whenever i change the ip of my domain, nginx still proxy to the old ip (which is down) and not the current ip. but whenever i redeploy the nginx, the problem is solved and it proxy to the current ip.
Now maybe it's some kind of cache or something like that, is there a way to cancel it?