It’s need a guide to know about how to deal with caches and cookies
-
It seems that some kind of cache systems, like nginx as reverse proxy or Cloudflare is caching the pages in a fixed light or dark mode, so the stored session cookie in the client browser doesn’t work. It doesn’t matter if you activate or deactivate the dark mode because when you browse into another page it doesn’t remember your previous choice. So it seems that there is some kind of problem and this plugin is not smart enough to know how to deal with statically cached pages.
That’s why it’s needed a guide or some procedure into the plugin to avoid this or to tell the user how to setup the system to avoid this undesired behaviour. Right now it’s not working as expected. If the page is cached as dark enabled, then it’s delivered that way to the user no matter what the preferences (in a cookie) are. And if it’s cached in dark mode, it happens the same, all users receive the same dark page without considering the stored preferences into each browser.
- You must be logged in to reply to this topic.