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

Idempotence does not mean immutability, it means that two or more identical operations have the same effect on the resource as a single one. Since GET operations, by virtue of also being safe, generally have no effect at all, this is almost always trivially true. Just because the resource's content changed for some other reason doesn't mean GET is not idempotent.


Correct.

GET, DELETE, HEAD, OPTIONS, PUT are idempotent.

POST is not. (Thus existence of Idempotency-Key, etc)




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: