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

As soon as you decide to create two URLs such as /user/1.json and /usr/1.html you are creating two distinct resources. The litmus test for determining if two URLs refer to the same resource is you do a GET on both and only one of them returns a 200 the other returns a 303 with the Location header set to the URL that returned a 200.


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

Search: