Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



> 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?




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: