• Hi guys,

    In header.php I’m using some code to redirect people to some pages according to their browser’s language of choice.

    Something like: “if your browser is in english, please go to A, if it’s in french, please go to B”

    At the same time, this code runs only once, thanks to a session_start(); (cookie), that makes it work only if it’s the first time they hit the homepage.

    How will W3 Total Cache manage that when page-caching the home if I have that code?

    Is it advisable to include my header.php (with redirect + cookie) in the “exclude from caching” box?

    Many thanks for your help,

    https://wordpress.org/plugins/w3-total-cache/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Redirect via cookie. Should I include header.php as non-cached?’ is closed to new replies.