Use the FOSHttpCache library in your Symfony projects
OTHER License
This bundle offers tools to improve HTTP caching with Symfony. It provides global configuration options to set caching headers based on the path, controller and other aspects of the request. In addition, it provides services for the FOSHttpCache library tools to actively invalidate caching proxies and some additional tools that can help when working with a caching proxy.
Documentation is available at Read the Docs.
This bundle is fully functional with Varnish and used in production in several systems. Nginx and the Symfony built-in HttpCache only support a part of the features.
See the GitHub issues if you are interested in the development of this bundle.
This bundle is released under the MIT license. See the included LICENSE file for more information.