Bloom – Super fast and highly configurable cache for REST APIs
Upon serving response to your Load Balancers, Bloom sets a cache status header, namely which can be seen publicly in HTTP responses (either with value , or — it helps debug your cache configuration). To tell Bloom not to cache a response, send the following HTTP header as part of the API response:
By default, Bloom retains all responses that are safe to cache, as long as they match both:
Refer to the list of status codes on Wikipedia if you want to find the matching status codes. To tell Bloom to use a certain expiration time on response cache (time after which the cache is invalidated and thus a new response is fetched upon client request), send the following HTTP header as part of the API response (here for a TTL of 60 seconds):
By default, Bloom sets a TTL of 600 seconds (10 minutes), though this can be configured from .
Source: github.com