Since this is not dependent on the controller anymore, I would move this out of controller.rb and into the ResponseCacheHandler constructor.