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

It does require cookies — did your loop occur with cookies on or off?

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.



I see. Yeah I had cookies disabled in both browsers I tried. Trying using a narrow viewport does load fine, although it's possible to have dual-purpose desktop and mobile styling in a single SVG using media queries, which I've done before (not sure how your desktop version differs though).


The reason why we need cookies is to deliver different versions depending on the platform.

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.




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: