@algernon@come-from.mad-scientist.club
2026-08-11 11:42 UTC
Replies (3)
-
@wink@sup.f5n.org 2026-08-11 11:56
@algernon@come-from.mad-scientist.club I have to report that clicking all 3 buttons just sets the theme to the light background one that existed when I arrived. Might be LibreWolf blocking some cookie... in my normal Firefox with UBO I got it to work once, then not anymore. If you have logs I'm the guy with a mac and LibreWolf and Firefox and ~20 page hits in the last 3min on /theme/
-
@jaypeach53@calckeymusic.social 2026-08-11 12:12
@algernon@come-from.mad-scientist.club doesn’t work in Safari on my ipad
-
@algernon@come-from.mad-scientist.club 2026-08-11 12:17
Turns out, there was a bit of a caching problem! I had my HTML load /theme.css, which was a real file, so if not loading the light or dark theme, a file was hit, and it had an etag and last-modified, and all that. So when switching to a light or dark theme, the browser would use the cached /theme.css instead of trying to load it again, and getting redirected. Changed the setup so /theme.css doesn't exist anymore, there's /theme-system.css instead, and /theme.css is thus always a redirect. The redirect also sets a query param to force the browser to load the page again too, and re-render it. Now it seems to work correctly.