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

Based on that description, you may be using PUT in conflict with its semantics (namely, idempotent way to replace an entire resource).

This is one reason why I don't bother with these methods and stick to GET and POST.




> I don't bother with these methods and stick to GET and POST.

Most people don't bother with them. If you need caching or want to be able to manipulate params in the browser/link to resources, use GET.

This idea that you need additional verbs for web services is a classic case of in-theory vs in-practice. Introducing non-trivial complication for very tiny benefit is a strange tradeoff.


PUT can be useful if you have a client that tries to handle errors. For example, our mobile application will automatically retry a PUT.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: