News for hackers. Stuff that matters.
Re:Back-end languages are coming to the front-end by polyrand on Thursday February 10, 2022 @06:33PM (#30294392)
I see...

What about using hx-trigger="load" for the form? Maybe that makes the browser reload it even after hitting the back button? (Sorry I can't check this right now, just a random idea).

Edit: I quickly tried it (mixing hx-from="#some-other-element" and hx-trigger="revealed", and it seems to be doing the request, but I haven't looked a lot.

Re:Back-end languages are coming to the front-end by ledgerdev on Friday February 11, 2022 @06:25PM (#30308242)
Ok, so turns out default chrome/firefox on windows/android were not issuing the history refresh request on back button click. Turns out you need to add some additional config to make that happen. It's now working, and it's excellent.

Set htmx to not cache prior pages by setting `htmx.config.historyCacheSize = 0` in window.onload.

Also set the http caching header `cache-control: no-cache`