diff --git a/deploy/config/local/nginx/server.conf b/deploy/config/local/nginx/server.conf index 43abc08dd..3559ea15f 100644 --- a/deploy/config/local/nginx/server.conf +++ b/deploy/config/local/nginx/server.conf @@ -116,8 +116,8 @@ server { set $skip_cache 1; } - # ...it's to the readiness endpoint - if ($request_uri = "/readiness") { + # ...it's to the liveness or readiness endpoint + if ($request_uri ~* "^/(liveness|readiness)$" ) { set $skip_cache 1; } diff --git a/deploy/config/server.conf b/deploy/config/server.conf index 0a50c7140..49a3b974d 100644 --- a/deploy/config/server.conf +++ b/deploy/config/server.conf @@ -136,7 +136,7 @@ server { } # ...it's to the liveness or readiness endpoint - if ($request_uri ~* "^(/liveness|/readiness)$" { + if ($request_uri ~* "^/(liveness|readiness)$" ) { set $skip_cache 1; }