From 1530e8c2be5a4201ecb7b89dd0108af433734a34 Mon Sep 17 00:00:00 2001 From: Ashley Rich Date: Mon, 31 Jul 2017 13:08:51 +0100 Subject: [PATCH] Don't cache JSON endpoints by default --- global/server/fastcgi-cache.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global/server/fastcgi-cache.conf b/global/server/fastcgi-cache.conf index 6ca822f..e4fa711 100644 --- a/global/server/fastcgi-cache.conf +++ b/global/server/fastcgi-cache.conf @@ -24,7 +24,7 @@ if ($query_string != "") { } # Don't cache uris containing the following segments -if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml") { +if ($request_uri ~* "/wp-admin/|/wp-json/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml") { set $skip_cache 1; }