Fix wildcard character in regex strings.
The map directive contains regexes (strings starting with a tilde) that contain 'asterisk' characters. In a regex, the asterisk character is a metacharacter, and in this context, it is meant as a wildcard character. To achieve the desired result, we should place a dot in front of the asterisk character.
This commit is contained in:
@@ -36,14 +36,14 @@ map $request_uri $uri_no_cache {
|
||||
"~*/wp-comments-popup\.php" 1;
|
||||
"~*/wp-links-opml\.php" 1;
|
||||
"~*/xmlrpc\.php" 1;
|
||||
"~*/edd-sl/*" 1;
|
||||
"~*/edd-sl/.*" 1;
|
||||
"~*/add_to_cart/" 1;
|
||||
"~*/cart/" 1;
|
||||
"~*/account/" 1;
|
||||
"~*/my-account/" 1;
|
||||
"~*/checkout/" 1;
|
||||
"~*/addons/" 1;
|
||||
"~*/wc-api/*" 1;
|
||||
"~*/wc-api/.*" 1;
|
||||
"~*/logout/" 1;
|
||||
"~*/lost-password/" 1;
|
||||
"~*/panier/" 1;
|
||||
|
||||
Reference in New Issue
Block a user