Impossible to purge URL with Query String.
andreapernici opened this issue · 1 comments
andreapernici commented
Following the readme configuration of fastcgi_cache I noticed that purge is not working in case of querystring.
Is there a way to solve this?
andreapernici commented
Ok solved
location ~ /purge_api(/.*) {
if ($query_string) {
set $qstr '?';
}
fastcgi_cache_purge API "$scheme$request_method$host$1$qstr$query_string";
}