News for hackers. Stuff that matters.
Re:Htmx Is Composable? by r00ks on Wednesday January 17, 2024 @10:30AM (#39029044)
Keeping the url in sync can be done by tracking whether the request has the `HX-Request` header in it and then returning either a partial template or the full the template, example of the helper - https://github.com/Austionian/bl0g/blob/46182cf762e9acefc35e...

The great part of this, too, is caching these responses is still simple with the a `Vary: HX-Request`

Re:Htmx Is Composable? by yawaramin on Wednesday January 17, 2024 @12:07PM (#39030438)
And, of course, with a 'Cache-Control: ...' header.