Custom WooCommerce notices not shown on Safari/Chrome




Wordpress LScache Plugin: Custom WooCommerce notices not shown on Safari/Chrome

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, writing this post I am referring to a previously opened request: https://wordpress.org/support/topic/custom-woocommerce-notices-not-shown-on-safari-with-quic-cloud-cdn/ Now we are facing the problem WITHOUT the CDN. In the dev env the notifications appear! The only difference between dev and prod environment was the object cache: in dev the feature was disabled. I tried to enable it and the notifications continue to appear. The ESI feature is disabled. The problem persists on Safari desktop and mobile, and Chrome mobile. I though that the problem was related to the browser cache, but I if try to leave a review when I am logged in as customer, the notification appears. I just made two reports, one for each environment: Development: AHEVKGVK Production: XLMHPJVI Could someone point me in the right direction? Any suggestion? Thank you, Nicola. PS: considering that the add to cart notice is shown correctly, is it possible that the problem depends by the system used to store it? The add to cart action is made with a POST to the product page, instead the save comment is made with a POST to the wp-comment-post.php, that sends back a location header to redirect to the product page. what was the http response header when it should give the notice ? Hello qtwrk! The response header was initially the standard for the inserted comments: Expires: (now + 10min) Cache-Control: max-age=600, must-revalidate I tried to force them this way (same as nocache_headers WP function ): Expires => Wed, 11 Jan 1984 05:00:00 GMT Cache-Control: no-cache, must-revalidate, max-age=0 But nothing changed? please post the full response header including the http status code on the page it should give notice Hello qtwrk! I rolled back my code to have the standard response. When I leave a review (remember that we are on woocommerce product pages): -> POST to wp-comments-post.php Request headers: :authority: www.________.com :method: POST :path: /wp-comments-post.php :scheme: https accept: text/html,application/xhtml+xml,application/xml q=0.9,image/avif,image/webp,image/apng, / q=0.8,application/signed-exchange v=b3 q=0.9 accept-encoding: gzip, deflate, br accept-language: it-IT,it q=0.9 cache-control: no-cache content-length: 173 content-type: application/x-www-form-urlencoded cookie: _ga=GA1.2.1____ _gid=GA1.2.____ wp-wpml_current_language=it cmplz_saved_categories=[ functional ] cmplz_saved_services= cmplz_id=24226 _gat=1 wp_woocommerce_session__________=t_5b2c7____ ls_smartpush=400003 _gali=submit origin: https://www.________.com pragma: no-cache referer: https://www.________.com/shop/category/product/ sec-ch-ua: Not A Brand v=99 , Chromium v=102 , Google Chrome v=102 sec-ch-ua-mobile: ?0 sec-ch-ua-platform: macOS sec-fetch-dest: document sec-fetch-mode: navigate sec-fetch-site: same-origin sec-fetch-user: ?1 upgrade-insecure-requests: 1 user-agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36 Expand Response headers, with 302 status code: cache-control: no-cache, no-store, must-revalidate, max-age=0 content-length: 0 content-type: text/html charset=UTF-8 date: Wed, 08 Jun 2022 07:34:13 GMT expires: Wed, 11 Jan 1984 05:00:00 GMT location: https://www.________.com/shop/category/product/?unapproved=78375&moderation-hash=9dda8229d891b8a7385d5866536470cb#comment-78375 server: LiteSpeed set-cookie: comment_author_16ff2f55e1______=+ expires=Tue, 08-Jun-2021 07:34:13 GMT Max-Age=0 path=/ secure set-cookie: comment_author_email_16ff2f55e19b8c6_______=+ expires=Tue, 08-Jun-2021 07:34:13 GMT Max-Age=0 path=/ secure set-cookie: comment_author_url_16ff2f55e19b_______=+ expires=Tue, 08-Jun-2021 07:34:13 GMT Max-Age=0 path=/ secure set-cookie: _lscache_vary=commenter expires=Sun, 21-May-2023 12:54:13 GMT Max-Age=30000000 path=/shop/category/product/ secure HttpOnly set-cookie: wp_automatewoo_visitor_16ff2f55e______ expires=Thu, 08-Jun-2023 07:34:13 GMT Max-Age=31536000 path=/ secure set-cookie: wp_automatewoo_session_started=1 path=/ secure strict-transport-security: max-age=31536000 includeSubDomains preload vary: User-Agent x-content-type-options: nosniff x-dns-prefetch-control: on x-frame-options: SAMEORIGIN x-litespeed-cache-control: no-cache x-litespeed-tag: d83_HTTP.302 x-powered-by: PHP/7.3.27 x-redirect-by: WordPress x-xss-protection: 1 mode=block Expand -> GET to https://www.________.com/shop/category/product/?unapproved=78375&moderation-hash=9dda8229d891b8a7385d5866536470cb#comment-78375 Request headers: :authority: www.________.com :method: GET :path: /shop/category/product/?unapproved=78375&moderation-hash=9dda8229d891b8a7385d5866536470cb :scheme: https accept: text/html,application/xhtml+xml,application/xml q=0.9,image/avif,image/webp,image/apng, / q=0.8,application/signed-exchange v=b3 q=0.9 accept-encoding: gzip, deflate, br accept-language: it-IT,it q=0.9 cache-control: no-cache cookie: _lscache_vary=commenter _ga=GA1.2.____ _gid=GA1.2____ wp-wpml_current_language=it cmplz_saved_categories=[ functional ] cmplz_saved_services= cmplz_id=24226 _gat=1 wp_woocommerce_session_16ff2f55e19b8c61_________=________________ ls_smartpush=400003 _gali=submit wp_automatewoo_visitor_16ff2f55e19b8c61_________=u1dk________ wp_automatewoo_session_started=1 pragma: no-cache referer: https://www.________.com/shop/category/product/ sec-ch-ua: Not A Brand v=99 , Chromium v=102 , Google Chrome v=102 sec-ch-ua-mobile: ?0 sec-ch-ua-platform: macOS sec-fetch-dest: document sec-fetch-mode: navigate sec-fetch-site: same-origin sec-fetch-user: ?1 upgrade-insecure-requests: 1 user-agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36 Expand Response headers, with 200 status code: cache-control: max-age=600, must-revalidate content-encoding: br content-type: text/html charset=UTF-8 date: Wed, 08 Jun 2022 07:34:15 GMT expires: Wed, 08 Jun 2022 07:44:14 link: rel=preload as=image link: rel=https://api.w.org/ link: rel=alternate type=application/json link: rel=shortlink server: LiteSpeed set-cookie: _lscache_vary=deleted expires=Thu, 01-Jan-1970 00:00:01 GMT Max-Age=0 path=/shop/category/product/ secure HttpOnly strict-transport-security: max-age=31536000 includeSubDomains preload vary: Accept-Encoding,User-Agent x-content-type-options: nosniff x-dns-prefetch-control: on x-frame-options: SAMEORIGIN x-litespeed-cache-control: no-cache x-litespeed-tag: d83_HTTP.200 x-powered-by: PHP/7.3.27 x-xss-protection: 1 mode=block Expand I restored my code, also, and did another test: -> POST to wp-comments-post.php Request headers: :authority: www.________.com :method: POST :path: /wp-comments-post.php :scheme: https accept: text/html,application/xhtml+xml,application/xml q=0.9,image/avif,image/webp,image/apng, / q=0.8,application/signed-exchange v=b3 q=0.9 accept-encoding: gzip, deflate, br accept-language: it-IT,it q=0.9 cache-control: no-cache content-length: 173 content-type: application/x-www-form-urlencoded cookie: _ga=GA1.2.1154651686.1654674501 _gid=GA1.2______ wp-wpml_current_language=it _gat=1 cmplz_saved_categories=[ functional ] cmplz_saved_services= cmplz_id=24229 wp_woocommerce_session_16ff2________=t_fbbf14e42d1b9f3428a05b8________________ ls_smartpush=4000003 _gali=submit origin: https://www.________.com pragma: no-cache referer: https://www.________.com/shop/category/product/ sec-ch-ua: Not A Brand v=99 , Chromium v=102 , Google Chrome v=102 sec-ch-ua-mobile: ?0 sec-ch-ua-platform: macOS sec-fetch-dest: document sec-fetch-mode: navigate sec-fetch-site: same-origin sec-fetch-user: ?1 upgrade-insecure-requests: 1 user-agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36 Expand Response headers, with 302 status code: cache-control: no-cache, no-store, must-revalidate, max-age=0 content-length: 0 content-type: text/html charset=UTF-8 date: Wed, 08 Jun 2022 07:48:54 GMT expires: Wed, 11 Jan 1984 05:00:00 GMT location: https://www.________.com/shop/category/product/?unapproved=78377&moderation-hash=a7a3c753ba6dedc641974f63cb847317#comment-78377 server: LiteSpeed set-cookie: comment_author_16ff2________=+ expires=Tue, 08-Jun-2021 07:48:54 GMT Max-Age=0 path=/ secure set-cookie: comment_author_email_16ff2________=+ expires=Tue, 08-Jun-2021 07:48:54 GMT Max-Age=0 path=/ secure set-cookie: comment_author_url_16ff2________=+ expires=Tue, 08-Jun-2021 07:48:54 GMT Max-Age=0 path=/ secure set-cookie: _lscache_vary=commenter expires=Sun, 21-May-2023 13:08:54 GMT Max-Age=30000000 path=/shop/category/product/ secure HttpOnly set-cookie: wp_automatewoo_visitor_16ff2________=u1dk8dgx38itr10bve63 expires=Thu, 08-Jun-2023 07:48:54 GMT Max-Age=31536000 path=/ secure set-cookie: wp_automatewoo_session_started=1 path=/ secure strict-transport-security: max-age=31536000 includeSubDomains preload vary: User-Agent x-content-type-options: nosniff x-dns-prefetch-control: on x-frame-options: SAMEORIGIN x-litespeed-cache-control: no-cache x-litespeed-tag: d83_HTTP.302 x-powered-by: PHP/7.3.27 x-redirect-by: WordPress x-xss-protection: 1 mode=block Expand -> GET to https://www.________.com/shop/category/product/?unapproved=78377&moderation-hash=a7a3c753ba6dedc641974f63cb847317#comment-78377 Request headers: :authority: www.________.com :method: GET :path: /shop/category/product/?unapproved=78377&moderation-hash=a7a3c753ba6dedc641974f63cb847317 :scheme: https accept: text/html,application/xhtml+xml,application/xml q=0.9,image/avif,image/webp,image/apng, / q=0.8,application/signed-exchange v=b3 q=0.9 accept-encoding: gzip, deflate, br accept-language: it-IT,it q=0.9 cache-control: no-cache cookie: _lscache_vary=commenter _ga=GA1.2.1154651686.1654674501 _gid=GA1.2______ wp-wpml_current_language=it _gat=1 cmplz_saved_categories=[ functional ] cmplz_saved_services= cmplz_id=24229 wp_woocommerce_session_16ff2________=t_fbbf14e42d1b9f3428a05b8________________ ls_smartpush=4000003 _gali=submit wp_automatewoo_visitor_16ff2________=u1dk8dgx38itr10bve63 wp_automatewoo_session_started=1 pragma: no-cache referer: https://www.________.com/shop/category/product/ sec-ch-ua: Not A Brand v=99 , Chromium v=102 , Google Chrome v=102 sec-ch-ua-mobile: ?0 sec-ch-ua-platform: macOS sec-fetch-dest: document sec-fetch-mode: navigate sec-fetch-site: same-origin sec-fetch-user: ?1 upgrade-insecure-requests: 1 user-agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36 Expand Response headers, with 200 status code: cache-control: no-cache content-encoding: br content-type: text/html charset=UTF-8 date: Wed, 08 Jun 2022 07:48:57 GMT expires: Wed, 11 Jan 1984 05:00:00 GMT link: rel=preload as=image link: rel=https://api.w.org/ link: rel=alternate type=application/json link: rel=shortlink server: LiteSpeed set-cookie: _lscache_vary=deleted expires=Thu, 01-Jan-1970 00:00:01 GMT Max-Age=0 path=/shop/category/product/ secure HttpOnly strict-transport-security: max-age=31536000 includeSubDomains preload vary: Accept-Encoding,User-Agent x-content-type-options: nosniff x-dns-prefetch-control: on x-frame-options: SAMEORIGIN x-litespeed-cache-control: no-cache x-litespeed-tag: d83_HTTP.200 x-powered-by: PHP/7.3.27 x-xss-protection: 1 mode=block Expand Consider that, making the test and having the browser console opened, I saw correctly the notices! Thank you for the support! Nicola I don?t see anything wrong from LSCWP side for instance, all these pages are giving x-litespeed-cache-contorl: no-cache which means page is not cached by LSCWP if you disable LSCWP, I assume it works fine ? what if you just use the default setting from LSCWP ? ]



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference