-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
upgrade of full stack causes failures due to mismatched frontend/backend versions #3550
Comments
Wonder if hashing the filenames is actually going to be sufficient here. Problem is that the hashed filename is referenced in the |
The For sessions that are when a new build is pushed it could be a good idea to serve the old version of assets for a while to make sure all sessions end and get the new |
Keeping old assets might make builds more complicated, you need to have the old assets to build the new. Unless the deploy just copies assets to an asset folder somewhere that is regularly cleaned up. More importantly though, this isn't going to help with server functions, which is where I am getting the errors. I have a copy of the wasm running on my phone, and do an upgrade of the server. The phone continues running the old wasm without even considering trying to update the (am curious how this path is generated) But this path is no longer valid for the server function. Instead it will point now to my Not Found handler (presumably; not tested) which will generate errors when the Not Found handler doesn't generate the expected json result. I can't think of any good solutions though really. About the best I can think of is some sort of Presumably, if you change the caching policy on |
I am finding that when the deployed version has been updated, the server function endpoints change and the client starts generating errors (it is still trying to access the old end points which are somehow hashed). This requires force reloading the client (e.g. shift click the reload button in Firefox IIRC). IIRC just clicking reload doesn't work.
Because everything is in the client, we are not downloading html pages with the correct references. And in any case it looks like the wasm is linked to directly without any hashing in the filename:
Which is OK for me, not OK if I want to deploy websites that others will use.
Is there any better way of handling this?
I don't think there is anything I missed in the docs on this, but I might have missed something.
Unfortunately, I don't think I can use Dioxus full stack for anything serious while this problem remains.
Originally posted by @brianmay in #3496
The text was updated successfully, but these errors were encountered: