Try adding the response header:
Vary: HX-Request
Re:htmx 2.0.0-beta1
by recursivedoubts on Monday March 18, 2024 @12:11PM
(#39746369)
Yep, probably browser caching:
Next time I work on it, will try to see if that resolves it.
When you do an htmx navigation to a new page, a discarded tab will "restore" only the last htmx fragment loaded, not the entire html page with style tags. Fix is to use unique url on push that isn't in local cache which forces a server reload on tab wake from discard.