这是indexloc提供的服务,不要输入任何密码
Skip to content

Turbo method exemptPageFromCache is not stable #1447

@morgoth

Description

@morgoth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions