4 ms·
GET is allowed to have side effects, just not beyond the first invocation of a given request.
by jpitz 5y ago
GET is allowed to have side effects, just not beyond the first invocation of a given request.
- dragonwriter 5y ago> GET is allowed to have side effects, just not beyond the first invocation of a given request. GET can have side effects, and has no difference first and subsequent invocations (because it is safe as well as idempotent). Were it idempotent but not safe, it could have side effects that the client was accountable for the first request, but no different ones of that kind for subsequent uses.
- jpitz 5y agoYes, and to that end, the draft defines QUERY as both idempotent AND safe.