I have the following type of endpoints.
/v1/endpoint/{id}/cache
/v1/endpoint/{id}/bypasscache
I want to bypass the cache on the second one as it needs to be up to date, whilst keeping my default cache on the first url which is updated infrequently.
Is this possible to have this setup, but with variable id?
if ($request_uri ~* "/v1/endpoint/18/bypasscache" ) {
set $no_cache 1;
}
fastcgi_cache_bypass $no_cache;
fastcgi_no_cache $no_cache;