Best way to cache RESTful API results of GET calls
问题 I'm thinking about the best way to create a cache layer in front or as first layer for GET requests to my RESTful API (written in Ruby). Not every request can be cached, because even for some GET requests the API has to validate the requesting user / application. That means I need to configure which request is cacheable and how long each cached answer is valid. For a few cases I need a very short expiration time of e.g. 15s and below. And I should be able to let cache entries expire by the