Data-turbo-temporary VS data-turbo-cache="false"


I am just wondering if there is any difference between using data-turbo-temporary (which removes element from page just before cache, so basically the element is not cached) and data-turbo-cache="false" (which deactivate cache on individual DOM element).

Definition for me look the same, and after several tests, behavior looks also the same. Is there any difference I am missing ?

They both work the same, however [data-turbo-cache=false] was deprecated in Feb 2023. Use [data-turbo-temporary] instead.

see: Deprecate [data-turbo-cache=false] in favor of [data-turbo-temporary] by packagethief · Pull Request #871 · hotwired/turbo · GitHub

1 Like