Skip to content

Commit

Permalink
expert-caching and empty parameters, like ?amp, should not serve cach…
Browse files Browse the repository at this point in the history
…ed page (#533)
  • Loading branch information
rmpel authored and donnchawp committed Apr 20, 2018
1 parent ac979c1 commit f497196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]";
Expand Down

0 comments on commit f497196

Please sign in to comment.