Hacker News new | past | comments | ask | show | jobs | submit login

With Apache you can set the server to provide specific resources that the browser supports.

For instance serving regular GIFs or whatever to MSIE, and SVGs or transparent PNGs to Firefox. You can also use it to serve proper XHTML to all browsers except MSIE.

These are real world use cases where I know people use.




That's actually exactly the wrong thing to do. If you're serving content based on the browser, you want to be inspecting User-Agent, not Accept. And yes, people do that all the time. But they never do it based on what the browser claims to support; they do it based on what the client actually claims to be, based on what they have tested against real software.




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

Search: