nginx-modules / ngx_cache_purge

nginx module which support to purge ngx_http_(fastcgi|proxy|scgi|uwsgi)_module cache backend
Other
209 stars 34 forks source link

not work #23

Closed pasamsin closed 4 years ago

pasamsin commented 4 years ago

I see a transaction successful message when I visit www.xxx.com/purge/*

The files in /var/cache/nginx/domain.com_proxy/ remain unchanged and the site comes from the cache again.

denji commented 4 years ago

HTTP method PURGE https://github.com/nginx-modules/ngx_cache_purge#partial-keys

pasamsin commented 4 years ago

If I visit as below; https://www.domain.com/purge/index.html It gives this message; Successful purge Key : /index.html

If I visit as below; https://www.domain.com/purge/index.html or https://www.domain.com/purge/ It gives this message; Why am I getting an error? 412 Precondition Failed nginx

My configuration is as follows; location ~ /purge(/.*) { allow xxx.xxx.xxx.xxx/24; deny all; proxy_cache_purge domain.com_proxy $1$is_args$args; }