-
Notifications
You must be signed in to change notification settings - Fork 88
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
loaded js gets stale on subsequent deploys #214
Comments
Do you have <link rel="stylesheet" href="..." data-turbo-track="reload" />
<script src="..." data-turbo-track="reload"></script> |
Yes indeed, I have reload set like below <%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> I ended up forcing a reload on the page client-side when the version changed. Not sure why my sessions were getting stale after a while, it was hard to reproduce reliably. |
Just did a test by changing some CSS in my development environment, did a pull to refresh, and it worked okay. I think the standard setup handles that okay. You already found a solution, and may have tried these during your debugging, but these are some other thoughts if you decide to try to tackle it again:
If everything is okay now you may want to close this issue. |
Hi there, I am finding that when deploying new versions of my rails application, the javascript running on the iOS client version gets a bit stale.
That is, I need to completely refresh the WKWebView to pull down the new client-side changes from the server (e.g. via hard refresh or force close). I notice that this staleness tends to occur when I add a new js dependency or modify existing behavior in certain cases.
Is this a known issue? Let me know if I am being unclear. Thanks!
The text was updated successfully, but these errors were encountered: