How to cache previous for turbo frames?

It seems cache previews for turbo frames don’t exist.

Cache previews for normal links works like this: If there is a snapshot cache for given page URL it will be shown until the live network requests sends the fresh renderable HTML.

But this is not true for trubo frames. The content inside the frame is not cached for that frame.

Does anybody know a trick to cache network responses for turbo-frames?

1 Like

Was just seeing the same thing myself. I have a <turbo-frame data-turbo-action="advance"> with some embedded links that use the [data-turbo-preload] attribute. But, clicking on the links does not appear to pull anything from the cache.

I posted my flavor of question here – Caching of turbo-frame not possible?