Hacker News new | ask | show | jobs
by netsharc 1429 days ago
Why not use user agent detection (and maybe have a header/footer that says "This page has been formatted for readability based on your User Agent: curl").

I'm guessing the blog is made by a static site generator, so the above is harder than it seems. I suppose one could add a reverse proxy that redirects to /raw/$PAGE when it sees "curl".

1 comments

User-agent specific stuff is pretty hacky in general. I at least would avoid it unless I've tried everything else first.