Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turbolinks config doesn't flush sprockets cache #171

Open
ryanb opened this issue Mar 11, 2020 · 1 comment
Open

Turbolinks config doesn't flush sprockets cache #171

ryanb opened this issue Mar 11, 2020 · 1 comment
Labels

Comments

@ryanb
Copy link

ryanb commented Mar 11, 2020

The readyPrefix function in setup.js.erb is dynamically generated depending on the turbolinks config. Unfortunately sprockets seems to cache this file and doesn't flush it until the file contents change. This means toggling the config will not update the asset cache.

Perhaps remove the dynamic generation in favor of detecting Turbolinks through JS.

@tian-im tian-im added the wip label May 20, 2020
@tian-im
Copy link
Collaborator

tian-im commented May 20, 2020

Yeah, the configuration is deprecated and it's detecting Turbolinks through JS instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants