Help with Turbo caching and page navigation

@alimi
Mon, 06 Oct 2025 19:25:26 +0000

This is very similar but not exactly the same. The fix didn’t work either.

github.com/hotwired/turbo

Turbo frame history not navigating properly w/ back button after upgrading from 7 to 8

opened 12:21PM - 05 Apr 24 UTC

charlesobrien

**Context:** Application has a simple live search via form: - Form uses "get…" method (just showing data; no updates) - Form targets a "results" turbo frame - Form uses data-turbo-action="advance" to update URL (to support users being able to copy/paste w/ params for the search and filter) **What's happening:** Live search is working fine. When the form is submitted (automatically as a user types), the turbo frame is updated with the correct results and the URL displays the correct query parameters. However, when navigating with the back button the turbo frame does not navigate backwards, it only shows the most recent set of results (despite the url and associated query params appropriately changing backwards). **What should be happening:** As the user navigates backwards the URL query params should change (which is happening) and the turbo frame should reflect the history from that point in time. **When did this start happening:** This happened on Turbo 8.0.4. and Turbo Rails 2. If I revert to Turbo < 8 and Turbo Rails < 2, the behavior works as expected.