Ring middleware for cache control of resources