From f497196755e6d9600b206545a0bbca4d42d28cad Mon Sep 17 00:00:00 2001 From: rmpel Date: Fri, 20 Apr 2018 16:03:14 +0200 Subject: [PATCH] expert-caching and empty parameters, like ?amp, should not serve cached page (#533) --- wp-cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-cache.php b/wp-cache.php index 70c9fbbf..cdd29490 100644 --- a/wp-cache.php +++ b/wp-cache.php @@ -3255,7 +3255,7 @@ function wpsc_get_htaccess_info() { $condition_rules[] = "RewriteCond %{REQUEST_URI} !^.*//.*$"; } $condition_rules[] = "RewriteCond %{REQUEST_METHOD} !POST"; - $condition_rules[] = "RewriteCond %{QUERY_STRING} !.*=.*"; + $condition_rules[] = "RewriteCond %{QUERY_STRING} ^$"; $condition_rules[] = "RewriteCond %{HTTP:Cookie} !^.*(comment_author_|" . wpsc_get_logged_in_cookie() . "|wp-postpass_).*$"; $condition_rules[] = "RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\\\"]+ [NC]"; $condition_rules[] = "RewriteCond %{HTTP:Profile} !^[a-z0-9\\\"]+ [NC]";