I'm disabling the cache previews in turbo via Turbo.cache.exemptPageFromPreview() (the issue is the same with Turbo.cache.exemptPageFromCache()).
This only works one time, thus when I do:
- visit page 1
- visit page 2
- get back to page 1 (cache/preview is properly disabled)
- visit some other page
- get back to page 1 (cache/preview fires)
All this sequence works properly when I put the
<meta name="turbo-cache-control" content="no-cache"> (or no-preview) in the HTML, thus not via Turbo.cache methods.
I'm using Turbo in Rails application with turbo frames.