Don't cache JSON endpoints by default

This commit is contained in:
Ashley Rich 2017-07-31 13:08:51 +01:00
parent 4480e21fea
commit 1530e8c2be

View File

@ -24,7 +24,7 @@ if ($query_string != "") {
} }
# Don't cache uris containing the following segments # 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; set $skip_cache 1;
} }