PHPackages                             plozmun/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. plozmun/http-cache-bundle

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

plozmun/http-cache-bundle
=========================

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

1.3.10(9y ago)057MITPHPPHP &gt;=5.3.3

Since Jun 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/plozmun/FOSHttpCacheBundle)[ Packagist](https://packagist.org/packages/plozmun/http-cache-bundle)[ Docs](https://github.com/FriendsOfSymfony/FOSHttpCacheBundle)[ RSS](/packages/plozmun-http-cache-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (11)Versions (24)Used By (0)

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

[](#foshttpcachebundle)

[![Build Status](https://camo.githubusercontent.com/0f5113fa2e745926f7df3e98a8bcd22f1fadf41160978d0c27d28650a0c4ea11/68747470733a2f2f7472617669732d63692e6f72672f467269656e64734f6653796d666f6e792f464f5348747470436163686542756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/FriendsOfSymfony/FOSHttpCacheBundle)[![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)

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

[](#introduction)

This bundle offers tools to improve HTTP caching with Symfony2. 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. With Nginx, many features are supported too.

Work for using the Symfony built-in HttpCache is in progress.

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](src/Resources/meta/LICENSE) file for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~45 days

Total

23

Last Release

3354d ago

Major Versions

1.3.x-dev → 2.0.0-alpha12017-03-06

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

2.0.0-alpha1PHP ^5.6.0||^7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/76d0c800b8ccf566f3de8d266b9d8efe092bdb9dd6395325c5f7f980d6f0d830?d=identicon)[plozmun](/maintainers/plozmun)

---

Top Contributors

[![dbu](https://avatars.githubusercontent.com/u/76576?v=4)](https://github.com/dbu "dbu (281 commits)")[![ddeboer](https://avatars.githubusercontent.com/u/89267?v=4)](https://github.com/ddeboer "ddeboer (211 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)")[![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)")[![gimler](https://avatars.githubusercontent.com/u/200904?v=4)](https://github.com/gimler "gimler (4 commits)")[![digitalkaoz](https://avatars.githubusercontent.com/u/293591?v=4)](https://github.com/digitalkaoz "digitalkaoz (4 commits)")[![lolautruche](https://avatars.githubusercontent.com/u/313528?v=4)](https://github.com/lolautruche "lolautruche (4 commits)")[![Tobion](https://avatars.githubusercontent.com/u/610090?v=4)](https://github.com/Tobion "Tobion (3 commits)")[![joelwurtz](https://avatars.githubusercontent.com/u/90466?v=4)](https://github.com/joelwurtz "joelwurtz (3 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)")[![j0k3r](https://avatars.githubusercontent.com/u/62333?v=4)](https://github.com/j0k3r "j0k3r (3 commits)")[![mguillermin](https://avatars.githubusercontent.com/u/252093?v=4)](https://github.com/mguillermin "mguillermin (2 commits)")[![dantleech](https://avatars.githubusercontent.com/u/530801?v=4)](https://github.com/dantleech "dantleech (2 commits)")[![krispypen](https://avatars.githubusercontent.com/u/156955?v=4)](https://github.com/krispypen "krispypen (2 commits)")[![benr77](https://avatars.githubusercontent.com/u/2156742?v=4)](https://github.com/benr77 "benr77 (2 commits)")[![tgalopin](https://avatars.githubusercontent.com/u/1651494?v=4)](https://github.com/tgalopin "tgalopin (2 commits)")[![wickedOne](https://avatars.githubusercontent.com/u/343850?v=4)](https://github.com/wickedOne "wickedOne (2 commits)")

---

Tags

httpcachingesivarnishpurgeinvalidation

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/http-cache-bundle

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

43813.2M47](/packages/friendsofsymfony-http-cache-bundle)[friendsofsymfony/http-cache

Tools to manage HTTP caching proxies with PHP

36114.7M36](/packages/friendsofsymfony-http-cache)[sofascore/purgatory-bundle

A Symfony bundle for HTTP cache invalidation with support for various backends like Varnish.

11665.0k](/packages/sofascore-purgatory-bundle)[flowpack/varnish

Varnish integration for Neos

2052.9k](/packages/flowpack-varnish)

PHPackages © 2026

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