instance method
turbo_exempts_page_from_cache
Ruby on Rails 1.5.0
Since v1.3.3 Last seen in v2.0.23Signature
turbo_exempts_page_from_cache()
Pages that are more likely than not to be a cache miss can skip turbo cache to avoid visual jitter. Cannot be used along with turbo_exempts_page_from_preview.
Source
# File app/helpers/turbo/drive_helper.rb, line 15
def turbo_exempts_page_from_cache
provide :head, tag.meta(name: "turbo-cache-control", content: "no-cache")
end
Defined in app/helpers/turbo/drive_helper.rb line 15
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::DriveHelper