Viewing 2 replies - 1 through 2 (of 2 total)
  • Can you try using init rather than wp_loaded? That works for me and the cookie banner I use on my site:

    function add_eucookie_cookies() {
            do_action( 'wpsc_add_cookie', 'euCookie' );
    }
    
    add_action( 'init', 'add_eucookie_cookies' );
    
    Thread Starter Václav Greif

    (@vasikgreif)

    Hello,
    I tried that, no luck. The code is live on my site:

    
    add_action( 'init', array($this,'add_wpsc_cookie') );
    
    public function add_wpsc_cookie() {
    		do_action( 'wpsc_add_cookie', 'ta_seznam_ads' );
        }
    
    

    The cookie is set correctly when I go to the URL with referrer, but I get the same cache version with or without cookie.

    Any idea how to fix this?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Different cache versions by cookie’ is closed to new replies.