• Resolved asafm7

    (@asafm7)


    This is the answer from your new ChatGPT support:

    No, not all cookies are excluded from full-page cache. We only bypass the cache if specific cookies are present. These include: wordpress_logged_in_, yith_wcwl_products, wp-postpass_, edd_items_in_cart=1, it_exchange_session_, wp_woocommerce_session, woocommerce_cart_hash, woocommerce_items_in_cart=1, wpSGCacheBypass=1.

    With this in mind, I asked your human chat support how to exclude additional cookies. The support agent didn’t know.

    Can you please verify if all cookies are excluded or not?

    If not all of them are excluded, how can I exclude additional cookies, such as cookie consent cookies?

    Thanks.

    • This topic was modified 1 year, 3 months ago by asafm7.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Plamen M

    (@plamenm)

    Hello, @asafm7 ,

    Caching is excluded only for a pre-defined set of cookies. You can read more at:

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

    You can exclude other cookies from the caching mechanism using the following filter, which should be added to the theme’s functions.php file:

    add_filter( 'sgo_bypass_cookies', 'add_sgo_bypass_cookies');
    function add_sgo_bypass_cookies( $bypass_cookies ) {
        // Add the cookies, that you need to bypass the cache.
        $bypass_cookies[] = 'cookie_name';
        $bypass_cookies[] = 'cookie_name_2';
    
        return $bypass_cookies;
    }

    Please test that way and if the issue still persists, you can open a ticket on our end from your SiteGround User Area so we can investigate the case further. 

    Regards,
    Plamen.M
    Tech Support Team
    SiteGround.com

    • This reply was modified 1 year, 3 months ago by Plamen M.
    • This reply was modified 1 year, 3 months ago by Plamen M.
    Thread Starter asafm7

    (@asafm7)

    Thank you @plamenm . Is this also supposed to work with your CDN full page cache?

    Plugin Support Gergana Petrova

    (@gpetrova)

    Hello @asafm7,

    The SiteGround CDN service is not directly tied to the SiteGround Optimizer Plugin for which this Support Forum is, so addressing any inquiries you may have about the CDN cannot be addressed here.

    The short answer would be yes.

    However as suggested previously a better approach would be to contact us within your SiteGround account in case you’re experiencing issues and/or have additional questions.

    Best Regards
    Gergana Petrova

    Thread Starter asafm7

    (@asafm7)

    Thanks @gpetrova .

    I understand.

    As I mentioned in my original question, I contacted SiteGround support before opening the ticket, and they couldn’t help me.

    So I’m unsure of what to do next…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Are all cookies excluded from full-page cache?’ is closed to new replies.