We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d577ac commit 3ff60dbCopy full SHA for 3ff60db
1 file changed
nginx/nginx.conf
@@ -143,10 +143,16 @@ http {
143
}
144
145
# 3. Cookie-based exclusions
146
- # Skips cache for logged-in users and active WooCommerce sessions. Products always cached.
+ # Skips cache for Wordpress.
147
map $http_cookie $skip_cache_cookie {
148
default 0;
149
- ~*(comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in|woocommerce_items_in_cart) 1;
+ ~*(comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in) 1;
150
+ }
151
+
152
+ # Skips cache for WooCommerce.
153
+ map $cookie_woocommerce_items_in_cart $skip_cache_cart {
154
+ default 0;
155
+ "1" 1;
156
157
158
# 4. AJAX-based exclusions
0 commit comments