Hi there,
I tried to use ngx_cache_purge with the configuration below
location ~ /purge(/.*) {
allow 127.0.0.1;
deny all;
proxy_cache_purge one backend$request_uri;
}
location ~* ^.+\.(css|js)$ {
proxy_pass http://backend;
proxy_cache two;
proxy_cache_key backend$request_uri;
proxy_cache_valid 200 1h;
proxy_cache_valid 404 1m;
Then when I tried to open by browser with url
http://myurl/purge/style.css, it’s saying Page not Found (404)
Is there any something I’ve missed?