3 ms·
> Apollo has really nice out-of-the-box caching that can be tricky to replicate with rest. Caching is trivial to do with REST. The "really nice caching" that
by troupo 3y ago
> Apollo has really nice out-of-the-box caching that can be tricky to replicate with rest.
Caching is trivial to do with REST.
The "really nice caching" that Apollo does literally deserializes and deep inspects both the request and the response to try and figure out caching on specific fields. Also, POST requests are not cacheable according to HTTP spec.
With REST you set an ETag and/or Cache-Control headers and let your existing infra and client browsers handle that.