3 ms·
Though as dragonwriter points out, using a button+POST to fake a delete is much better than using a link. Api-wise that's a reason to mux your puts and deletes
by adrianratnapala 8y ago
Though as dragonwriter points out, using a button+POST to fake a delete is much better than using a link.
Api-wise that's a reason to mux your puts and deletes in the POST handler and not in the GET handler, since it force the HTML to use buttons rather than links that might get crawled.
- runarberg 8y agoI still don’t understand why: <button formmethod="POST"> is better then: <button formmethod="DELETE"> When the former actually calls DELETE behind the scenes. I would think a crawler would prefer the latter, except for the fact that it is invalid (!)