DEV Community

Discussion on: How do you feel about the "misuse" of HTTP methods?

Collapse
 
xowap profile image
Rémy 🤖

I don't give a fuck about methods purity, but there is a few properties to follow

  • What goes in GET parameters must be inconsequential (do not trigger any write)
  • Secrets are better in POST (as POST body are not usually logged nor visible)
  • Post friends like PUT and PATCH can have meaning for your app
  • Also GET and POST get cached differently and that's an important property as well