sgo_bypass_cookies filter functionality | WordPress.org

[ad_1]

Hello @asafm7,

The sgo_bypass_cookies filter does work with partial match and will exclude both test and test123.

This filter, however, works only for File Based Caching and the cookie value will not be taken into account.

Still, the Dynamic Caching functionality excludes by default the most commonly used cookies such as wordpress_logged_in_. You may find a list of all of the cookies that bypass the cache in the article below:

https://www.siteground.com/kb/siteground-dynamic-caching-configuration/#Cookies

In case there are other cookies used by the website which are not excluded from the Dynamic caching you can use headers to manage cache control. We support all the standard Cache-control header values that all CMS apps support:

cache-control: no-cache – passing this header tells our system not to cache this request
cache-control: max-age – this header tells our system to cache this request for X amount of seconds

Best regards,
Daniela Ivanova

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer