Skip to content

Commit 75291f7

Browse files
authored
Update production.txt
1 parent 30d94cc commit 75291f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/nginx/sites/production.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,11 @@ location ~* \.(asp|aspx|doc|docx|dwf|gpx|hwp|jsp|kml|kmz|log|odp|ods|odt|pdf|ppt
360360
if ($query_string != "") {
361361
set $skip_cache 1;
362362
}
363+
364+
## woocommerce ajax should always skip cache (just being more explicit for future proof)
365+
if ($query_string ~* "wc-ajax") {
366+
set $skip_cache 1;
367+
}
363368

364369
## ENGLISH - sensitive wordpress urls should always skip the cache
365370
if ($request_uri ~* "index.php|/account.*|/cart.*|/checkout.*|/contact.*|/dashboard.*|/login.*|/my-.*|/order.*|/profile.*|/register.*|/settings.*|/view.*|/wc-api.*|/wp-admin.*|wp-.*.php") {

0 commit comments

Comments
 (0)