Skip to content
Discussion options

You must be logged in to vote

@zwhitchcox are you deploying a static site? If so, then you'll most likely need to purge your CDN or you can define headers that will force it to revalidate the html files.

How do I avoid mismatched data/markup and potential breakage when the loader returns data that doesn’t match the old client code?

I'm assuming you mean in the scenario that a user is on the app during an update and their version is now broken. This is a general challenge in web development, not limited to Remix, and one solution is to poll an endpoint that returns your build version (this could be in your CDN as well, like version.txt) and if it doesn't match the last version you saw then you can inform the user and…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zwhitchcox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants