friendsofsymfony/http-cache-bundle
最新稳定版本:3.2.0
Composer 安装命令:
composer require friendsofsymfony/http-cache-bundle
包简介
Set path based HTTP cache headers and send invalidation requests to your HTTP cache
README 文档
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.
统计信息
- 总下载量: 12.68M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 440
- 点击次数: 1
- 依赖项目数: 46
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04