friendsofsymfony / http-cache-bundle
Set path based HTTP cache headers and send invalidation requests to your HTTP cache
Installs: 10 412 919
Dependents: 42
Suggesters: 2
Security: 0
Stars: 430
Watchers: 18
Forks: 80
Open Issues: 10
Type:symfony-bundle
Requires
- php: ^8.1
- friendsofsymfony/http-cache: ^2.15 || ^3.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/expression-language: ^6.4 || ^7.0
- symfony/framework-bundle: ^6.4 || ^7.0
- symfony/http-foundation: ^6.4 || ^7.0
- symfony/http-kernel: ^6.4 || ^7.0
- symfony/security-bundle: ^6.4 || ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.54
- guzzlehttp/guzzle: ^7.2
- jean-beru/fos-http-cache-cloudfront: ^1.1
- matthiasnoback/symfony-config-test: ^4.3.0 || ^5.1
- matthiasnoback/symfony-dependency-injection-test: ^4.3.1 || ^5.0
- mockery/mockery: ^1.6.9
- monolog/monolog: *
- php-http/discovery: ^1.13
- php-http/guzzle7-adapter: ^0.1.1
- php-http/httplug: ^2.2.0
- php-http/message: ^1.0 || ^2.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-symfony: ^1.3
- phpunit/phpunit: ^10.5
- symfony/browser-kit: ^6.4 || ^7.0
- symfony/console: ^6.4 || ^7.0
- symfony/css-selector: ^6.4 || ^7.0
- symfony/finder: ^6.4 || ^7.0
- symfony/monolog-bundle: ^3.0
- symfony/routing: ^6.4 || ^7.0
- symfony/twig-bundle: ^6.4 || ^7.0
- symfony/yaml: ^6.4 || ^7.0
- twig/twig: ^v3.8
Suggests
- jean-beru/fos-http-cache-cloudfront: To use CloudFront proxy
- sensio/framework-extra-bundle: For Tagged Cache Invalidation
- symfony/console: To send invalidation requests from the command line
- symfony/expression-language: For Tagged Cache Invalidation
Conflicts
- symfony/monolog-bridge: <3.4.4
- twig/twig: <1.12.0
- 3.x-dev
- 3.0.2
- 3.0.1
- 3.0.0
- 2.x-dev
- 2.17.1
- 2.17.0
- 2.16.2
- 2.16.1
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.1
- 2.12.0
- 2.11.2
- 2.11.1
- 2.11.0
- 2.10.3
- 2.10.2
- 2.10.1
- 2.10.0
- 2.9.2
- 2.9.1
- 2.9.0
- 2.8.0
- 2.7.2
- 2.7.1
- 2.7.0
- 2.6.1
- 2.6.0
- 2.5.1
- 2.5.0
- 2.4.1
- 2.4.0
- 2.3.1
- 2.3.0
- 2.2.2
- 2.2.1
- 2.2.0
- 2.2.0-alpha1
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 2.0.0-beta2
- 2.0.0-beta1
- 2.0.0-alpha1
- 1.3.16
- 1.3.15
- 1.3.14
- 1.3.13
- 1.3.12
- 1.3.11
- 1.3.10
- 1.3.9
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 1.0.0-RC1
- 1.0.0-beta1
- 1.0.0-alpha2
- 1.0.0-alpha1
- dev-cs
This package is auto-updated.
Last update: 2024-11-06 08:10:00 UTC
README
Introduction
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.
Features
- Set path-based cache expiration headers via your app configuration;
- Set up an invalidation scheme without writing PHP code;
- Tag your responses and invalidate cache based on tags;
- Send invalidation requests with minimal impact on performance;
- Differentiate caches based on user type (e.g. roles);
- Easily implement your own HTTP cache client.
Documentation
Documentation is available at Read the Docs.
Roadmap
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.
License
This bundle is released under the MIT license. See the included LICENSE file for more information.