News for hackers. Stuff that matters.
Re:Migrating Netflix to GraphQL Safely by troupo on Sunday June 18, 2023 @06:42PM (#36385285)
> 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.

There are no comments on this comment yet.