Hacker News new | ask | show | jobs
by RadiozRadioz 974 days ago
People say SSR like it's a new concept, but this was how it worked for a long time.

Guess based on user agent (or other fingerprinting metric of choice), redirect to guessed site, provide user the option to override when the page appears, remember the choice in cookie (or local storage).

Though personally I think you can do a lot with responsive CSS if you try hard enough - that is my preferred option.

1 comments

> redirect to guessed site

I always wondered about that. What's the point of redirecting instead of serving a different template on the same URL?

That works, you'd just have to put the setting in a cookie rather than local storage.
Why? If you can detect mobile user-agents on the first page load, can't you do it in the next page loads too?