A middleware that stores and serves responses in compliance with RFC-7234. The cache key is determined using the path of the request and filtering query parameters to those specified in the Swagger Documentation for the endpoint. The cache is content-aware; that is, it won’t attempt to serve a cached XML response if the current request asks for a JSON response.
If-Modified-Since
or If-Match
header.
// Domain Object
{
domain-name: "example.com"
middleware-chain: [
{id: http_cache, sla: 20 ms, builder: ResponseCacheBuilder}
]
middleware {
// id used in the middleware-chain list
http_cache {
// The identifier of the Key Value Store to persist the responses
kvstore: "redis_kv"
}
}
}