by AndrewSwift · 4y ago · 0 comments
Without cookies it will try to redirect to the desktop version and fail — if you visit in a tall narrow window it should show you the mobile version and not reload.
By default, the mobile version is served. If it turns out that the request came from a big screen, a cookie is set and the page is reloaded.
From then on, the cookie is used and the big-screen version is sent by default.
The point is just to have a single address for each page but to deliver appropriate content depending on the platform.