On GET requests, the middleware inspects __endpointMeta.cacheTags to
compute cache keys. If a valid (non-expired) cache entry exists, the
cached response is returned immediately (cloned).
On mutating requests (POST, PUT, DELETE, PATCH), all cache entries whose
key starts with any of the endpoint's tag names are invalidated.
Creates a tag-based cache middleware.
On GET requests, the middleware inspects
__endpointMeta.cacheTagsto compute cache keys. If a valid (non-expired) cache entry exists, the cached response is returned immediately (cloned).On mutating requests (POST, PUT, DELETE, PATCH), all cache entries whose key starts with any of the endpoint's tag names are invalidated.