Updated caching rules

Removed `/edd_action` as it's actually `/?edd_action` a query string. They are removed by default.

Removed `/checkout` as we already have /checkout/ (One of my plugins has the URL of /checkout-countdown../ and was never cached.) 

Added `/account/` as it's a common page that shouldn't be cached.
This commit is contained in:
Morgan
2020-03-22 19:28:56 +08:00
committed by GitHub
parent 241b11821c
commit e0b9b06d0c

View File

@@ -36,11 +36,10 @@ map $request_uri $uri_no_cache {
"~*/wp-comments-popup.php" 1;
"~*/wp-links-opml.php" 1;
"~*/xmlrpc.php" 1;
"~*/checkout" 1;
"~*/edd_action" 1;
"~*/edd-sl/*" 1;
"~*/add_to_cart/" 1;
"~*/cart/" 1;
"~*/account/" 1;
"~*/my-account/" 1;
"~*/checkout/" 1;
"~*/addons/" 1;
@@ -88,4 +87,4 @@ map $https $https_prefix {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
}