-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
CDN Causing infinite reload #6703
Comments
@brophdawg11 I think we should drop the search comparison part of #6409. @yarbsemaj that would fix your issue, right? I can open a pr today |
It should do, yes |
…wnloading asset bundles Resolves remix-run#6703 Previous implementation used the pathname and search parts of a url to determine if route changed, which causes some conflict when CDNs / cache proxies are placed between the Remix app and the client. This change allows remix to reload the page if only the path changes. There may be some issues with how loaders are handled when configured behind a CDN, since Remix expects to trigger loaders when the search part of a url changes, but the total impact here is dependent on how a developer is configuring the network topology on top of a Remix server.
@yarbsemaj see comment here: #6707 (comment) |
I also have seen infinite reloads when upgrading to 1.18, but I have not yet been able to confirm why. I see infinite reloading when running locally and not behind a CDN. As a result, my current project will remain on lower versions until I can figure out why 1.18 caused this issue |
I think #6707 is the correct fix here for CDN's ignoring search params so we're going to look into a patch release with that in it. @tatemz Please reply if you can figure out your issue. Turn on Another root cause we identified was mismatched versions of |
🤖 Hello there, We just published version Thanks! |
This should be available in |
🤖 Hello there, We just published version Thanks! |
Thanks @brophdawg11. My project is definitely showing this error in the console. Thanks for the lead. I am using Shopify Hydrogen and will have to track down the deps resolution through their repo |
@tatemz yeah we chatted with the Hydrogen team yesterday about that. The issue boils down to hydrogen having an internal dependency on 1.17.1 but if you then update to 1.18.0 in your package.json, you can get a mismatch which causes this issue. For now just make sure you've installed the same remix versions as hydrogen is using internally. And then bump to 1.18.0 when they do. We discussed plans to avoid this type of mismatch in the future as well. |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of Remix are you using?
1.18.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Issue caused by this PR
#6409
Expected Behavior
Page should not get stuck in a loop and should load normally
Actual Behavior
Page gets stuck in an infinite reload loop as the url on the cache page does not match the URL of the page you are loading
The text was updated successfully, but these errors were encountered: