I am looking for a way to purge nginx cache using by adding a specific annotation on url.
Let's say I have this url (item) cached with nginx:
http://mywebsite/render/render5.php?frame=1&image=nature-1920.jpg
If I want to purge it, I would have to add:
http://mywebsite/render/render5.php?frame=1&image=nature-1920.jpg&purge=1
Is that possible to purge an URL if we add at the end of this URL &purge=1
?
All tutorials I find use the curl -X
command to purge a specific item, for example:
curl -X PURGE http://mywebsite/render/render5.php?frame=1&image=nature-1920.jpg
https://scene-si.org/2016/11/02/purging-cached-items-from-nginx-with-lua/
And I want to be able to purge an nginx cached item (url) without having to use curl -X
command.