• Resolved ahmedibrahimgaber

    (@ahmedibrahimgaber)


    Hi,
    I enabled the page cache but this caused an issue with logic depending on a cookie, in my site based on a cookie when the user visits the home if the cookie does not exist the user is redirected to a landing page, when the page cache is enabled now the logic always see any user has the cookie, is there a solution otherwise to exclude this cookie because this will cause to prevent the page cache.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @ahmedibrahimgaber

    Thank you for reaching out and I am happy to help!
    There are few ways to approach this. The first one is to add the cookie to the Performance>Page Cache>Advanced>Rejected cookies: field. This, however, will disable the Page Caching if the cookie is present.
    The other way is to use Cookie groups in Performance>Cache Groups. There you can creat a group of Cookies by specifying names in the Cookies field. Assign a set of Cookies to ensure that a unique cache is created for each Cookie group.

    I hope this helps!

    Thanks!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.