PHPackages                             friendsofsymfony/http-cache-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. friendsofsymfony/http-cache-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

friendsofsymfony/http-cache-bundle
==================================

Set path based HTTP cache headers and send invalidation requests to your HTTP cache

3.4.1(3w ago)43713.9M↓41.6%83[10 issues](https://github.com/FriendsOfSymfony/FOSHttpCacheBundle/issues)20MITPHPPHP ^8.1CI failing

Since Jun 6Pushed 3w ago15 watchersCompare

[ Source](https://github.com/FriendsOfSymfony/FOSHttpCacheBundle)[ Packagist](https://packagist.org/packages/friendsofsymfony/http-cache-bundle)[ Docs](https://github.com/FriendsOfSymfony/FOSHttpCacheBundle)[ RSS](/packages/friendsofsymfony-http-cache-bundle/feed)WikiDiscussions 3.x Synced yesterday

READMEChangelog (10)Dependencies (93)Versions (85)Used By (20)

FOSHttpCacheBundle
==================

[](#foshttpcachebundle)

[![Build Status](https://github.com/FriendsOfSymfony/FOSHttpCacheBundle/workflows/CI/badge.svg)](https://github.com/FriendsOfSymfony/FOSHttpCacheBundle/actions)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e6f96d5b746e58e786e911693d2897cce11efa6bfedd62e587f263c676ac3db2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f467269656e64734f6653796d666f6e792f464f5348747470436163686542756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/FriendsOfSymfony/FOSHttpCacheBundle/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/c31a0d0632dd85e13830c9f44ac00f08cf97febfcb7860ba37110f2a32e2a080/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f467269656e64734f6653796d666f6e792f464f5348747470436163686542756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/FriendsOfSymfony/FOSHttpCacheBundle/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/b36f30f6f661cb2bb13652b33ed31f3e3099d92b589e225e5896b5234d938d1a/68747470733a2f2f706f7365722e707567782e6f72672f667269656e64736f6673796d666f6e792f687474702d63616368652d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/friendsofsymfony/http-cache-bundle)[![Documentation Status](https://camo.githubusercontent.com/32a0e2f445068e0ff35dd34d41ed71af814f5fd09923f4d0d2c9fb911d9e0650/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f666f7368747470636163686562756e646c652f62616467652f3f76657273696f6e3d6c6174657374)](http://foshttpcachebundle.readthedocs.io/en/latest/?badge=latest)

Introduction
------------

[](#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](https://github.com/FriendsOfSymfony/FOSHttpCache)tools to actively invalidate caching proxies and some additional tools that can help when working with a caching proxy.

Features
--------

[](#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)

Documentation is available at [Read the Docs](http://foshttpcachebundle.readthedocs.org/).

Roadmap
-------

[](#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](https://github.com/FriendsOfSymfony/FOSHttpCacheBundle/issues)if you are interested in the development of this bundle.

License
-------

[](#license)

This bundle is released under the MIT license. See the included [LICENSE](LICENSE) file for more information.

###  Health Score

77

—

ExcellentBetter than 100% of packages

Maintenance95

Actively maintained with recent releases

Popularity68

Solid adoption and visibility

Community47

Growing community involvement

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 60.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~53 days

Recently: every ~89 days

Total

83

Last Release

25d ago

Major Versions

1.3.14 → 2.2.12018-04-16

1.3.15 → 2.3.02018-04-24

1.3.16 → 2.4.12018-08-09

2.17.1 → 3.0.02024-05-04

2.x-dev → 3.2.02025-06-17

PHP version history (7 changes)1.0.0-alpha1PHP &gt;=5.3.3

2.0.0-alpha1PHP ^5.6.0||^7.0.0

1.3.13PHP ^5.4 || ^7.0

2.2.0PHP ^7.1

2.8.0PHP ^7.2

2.10.0PHP ^7.3 || ^8.0

3.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/76576?v=4)[David Buchmann](/maintainers/dbu)[@dbu](https://github.com/dbu)

![](https://www.gravatar.com/avatar/54c045456672a15a85dd65e79418d0f3375322df38ac4dedb5d66487d86ab592?d=identicon)[ddeboer](/maintainers/ddeboer)

---

Top Contributors

[![dbu](https://avatars.githubusercontent.com/u/76576?v=4)](https://github.com/dbu "dbu (635 commits)")[![ddeboer](https://avatars.githubusercontent.com/u/89267?v=4)](https://github.com/ddeboer "ddeboer (213 commits)")[![lsmith77](https://avatars.githubusercontent.com/u/300279?v=4)](https://github.com/lsmith77 "lsmith77 (61 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (15 commits)")[![alexander-schranz](https://avatars.githubusercontent.com/u/1698337?v=4)](https://github.com/alexander-schranz "alexander-schranz (14 commits)")[![Toflar](https://avatars.githubusercontent.com/u/481937?v=4)](https://github.com/Toflar "Toflar (13 commits)")[![XWB](https://avatars.githubusercontent.com/u/1032281?v=4)](https://github.com/XWB "XWB (12 commits)")[![emodric](https://avatars.githubusercontent.com/u/362286?v=4)](https://github.com/emodric "emodric (8 commits)")[![Tobion](https://avatars.githubusercontent.com/u/610090?v=4)](https://github.com/Tobion "Tobion (6 commits)")[![jnonon](https://avatars.githubusercontent.com/u/959315?v=4)](https://github.com/jnonon "jnonon (5 commits)")[![zlatio](https://avatars.githubusercontent.com/u/545553?v=4)](https://github.com/zlatio "zlatio (4 commits)")[![andrerom](https://avatars.githubusercontent.com/u/289757?v=4)](https://github.com/andrerom "andrerom (4 commits)")[![digitalkaoz](https://avatars.githubusercontent.com/u/293591?v=4)](https://github.com/digitalkaoz "digitalkaoz (4 commits)")[![gimler](https://avatars.githubusercontent.com/u/200904?v=4)](https://github.com/gimler "gimler (4 commits)")[![jdreesen](https://avatars.githubusercontent.com/u/424602?v=4)](https://github.com/jdreesen "jdreesen (4 commits)")[![Jean-Beru](https://avatars.githubusercontent.com/u/6114779?v=4)](https://github.com/Jean-Beru "Jean-Beru (4 commits)")[![lolautruche](https://avatars.githubusercontent.com/u/313528?v=4)](https://github.com/lolautruche "lolautruche (4 commits)")[![usu](https://avatars.githubusercontent.com/u/449555?v=4)](https://github.com/usu "usu (4 commits)")[![pierremarichez](https://avatars.githubusercontent.com/u/185425135?v=4)](https://github.com/pierremarichez "pierremarichez (3 commits)")[![snc](https://avatars.githubusercontent.com/u/216730?v=4)](https://github.com/snc "snc (3 commits)")

---

Tags

cachehttpphpsymfonysymfony-bundlehttpcachingesivarnishpurgeinvalidation

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/friendsofsymfony-http-cache-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/friendsofsymfony-http-cache-bundle/health.svg)](https://phpackages.com/packages/friendsofsymfony-http-cache-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M736](/packages/sylius-sylius)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
