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:
@@ -36,11 +36,10 @@ map $request_uri $uri_no_cache {
|
|||||||
"~*/wp-comments-popup.php" 1;
|
"~*/wp-comments-popup.php" 1;
|
||||||
"~*/wp-links-opml.php" 1;
|
"~*/wp-links-opml.php" 1;
|
||||||
"~*/xmlrpc.php" 1;
|
"~*/xmlrpc.php" 1;
|
||||||
"~*/checkout" 1;
|
|
||||||
"~*/edd_action" 1;
|
|
||||||
"~*/edd-sl/*" 1;
|
"~*/edd-sl/*" 1;
|
||||||
"~*/add_to_cart/" 1;
|
"~*/add_to_cart/" 1;
|
||||||
"~*/cart/" 1;
|
"~*/cart/" 1;
|
||||||
|
"~*/account/" 1;
|
||||||
"~*/my-account/" 1;
|
"~*/my-account/" 1;
|
||||||
"~*/checkout/" 1;
|
"~*/checkout/" 1;
|
||||||
"~*/addons/" 1;
|
"~*/addons/" 1;
|
||||||
@@ -88,4 +87,4 @@ map $https $https_prefix {
|
|||||||
map $http_upgrade $connection_upgrade {
|
map $http_upgrade $connection_upgrade {
|
||||||
default upgrade;
|
default upgrade;
|
||||||
'' close;
|
'' close;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user