|
|
|
|
|
by osrec
2900 days ago
|
|
While I agree that we should not reinvent the wheel, caching data is often tricky with REST. In my experience, the caching aspect of HTTP can introduce unexpected behaviour into applications. To get round this, I see a lot of devs use POST requests for everything, and implement their own custom caching layer. Basically, I think HTTP caching is fine for files, but once you start working with complex data, things get cumbersome rather quickly. |
|
Once you've made those decisions from a business perspective, you can have your services send the HTTP headers to effect that caching behavior.