-
Notifications
You must be signed in to change notification settings - Fork 435
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
Turbo frame with advance action makes wrong cache #1008
Comments
A more verifiable way for all to see the issue @xiaohui-zhangxh is to add a browser test through playwright to show and test the issue. This also enables verification of an eventual solution. Take a look at #1009 when you get a chance and verify this reproduces your issue |
I'm seeing the same issue, temporary fix is to disable the turbo cache via |
Finally, the same to my solution, I have to disable turbo cache, otherwise the browser backward action has many werid responses, such as first backward clicking has no change, second backward clicking shows wrong page, alpinejs not working |
A normal turbo link click,
turbo:before-cache
is caching previous page, but if a link targets turbo frame with advance action, it's caching current page which after turbo frame is loaded.I have commited the simplest repo to show this bug, please see this https://github.com/xiaohui-zhangxh/turbo-frame-cache-bug
this is layout https://github.com/xiaohui-zhangxh/turbo-frame-cache-bug/blob/main/app/views/layouts/application.html.erb
this is one of page https://github.com/xiaohui-zhangxh/turbo-frame-cache-bug/blob/main/app/views/pages/page1.html.erb
I found this issue from here SimoTod/alpine-turbo-drive-adapter#50
The text was updated successfully, but these errors were encountered: