4 ms·
If you can only use POST, then the query is by definition not safe in the HTTP sense even if it would be with a QUERY method: POST is defined to be not-safe. S
by cryptonector 5y ago
If you can only use POST, then the query is by definition not safe in the HTTP sense even if it would be with a QUERY method: POST is defined to be not-safe.
So an HTTP framework would not retry, moving retry logic into the application.
If you can only use POST, then you also can't cache the result because POST is not safe: you've no idea if the same POST is intended to produce the same response.
- dillondoyle 5y agoMakes sense on the browser retry. Can cache in your JS code. But for browsers: Do browsers respect cache headers for GET requests to say an API endpoint? maybe with an etag?
- jayd16 5y agoPOSTs are cacheable with a cache response header. POST MAY NOT be idempotent. That doesn't mean they MUST NOT be idempotent. If you have the cache header, you do know what the intention is.