Developed with love by KnpLabs Hire us for your project!
132

FOSHttpCacheBundle

by FriendsOfSymfony

Use the FOSHttpCache library in your Symfony2 projects

FOSHttpCacheBundle

Build Status
Scrutinizer Code Quality
Code Coverage
Latest Stable Version

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
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. With Nginx, many features are supported too.

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

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.

Copyright (c) 2010-2014 Liip, http://www.liip.ch <contact@liip.ch>
Driebit, http://www.driebit.nl <info@driebit.nl>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
  • Merge pull request #205 from FriendsOfSymfony/user-context-doc-cleanup
    By ddeboer, 2 years ago
  • improve user context documentation
    By dbu, 2 years ago
  • Merge pull request #204 from FriendsOfSymfony/remove-symfony-fix
    By dbu, 2 years ago
  • Merge pull request #194 from FriendsOfSymfony/fix-request-matcher-service
    By dbu, 2 years ago
  • Always load request_matcher and rule_matcher services
    By ddeboer, 2 years ago
  • Revert our workaround because Symfony is fixed
    By ddeboer, 2 years ago
  • Merge pull request #201 from FriendsOfSymfony/adjust-hash-lookup-doc
    By ddeboer, 2 years ago
  • adjust example for user context hash url to be consistent with FOSHttpCache examples and Symfony HttpCache plugins
    By dbu, 2 years ago
  • Merge pull request #198 from FriendsOfSymfony/spell-checking
    By ddeboer, 2 years ago
  • Merge pull request #202 from FriendsOfSymfony/3.0-compatibility
    By dbu, 2 years ago
  • Add templating config key
    By ddeboer, 2 years ago
  • Support TokenStorageInterface, introduced in Symfony 2.6
    By ddeboer, 2 years ago
  • add spell checking and fix spelling errors
    By dbu, 2 years ago
  • Merge pull request #199 from FriendsOfSymfony/fix-tests
    By dbu, 2 years ago
  • Fix #197
    By ddeboer, 2 years ago
  • Merge pull request #196 from lolautruche/patch-1
    By dbu, 2 years ago
  • Fixed tagging basic configuration example
    By lolautruche, 2 years ago
  • Fix doc reference
    By ddeboer, 2 years ago
  • Merge pull request #191 from FriendsOfSymfony/fix-build
    By dbu, 2 years ago
  • Switch to stable for vendors except http-cache
    By ddeboer, 2 years ago
  • Update copyright to 2015
    By ddeboer, 2 years ago
  • Merge pull request #187 from ericvincenterv/patch-1
    By ddeboer, 2 years ago
  • Fix file path
    By ericvincenterv, 2 years ago
  • Merge pull request #148 from FriendsOfSymfony/invalidate-route-absolute
    By ddeboer, 2 years ago
  • invalide/refresh Route should generate absolute urls
    By dbu, 2 years ago
  • Fix CS
    By ddeboer, 2 years ago
  • Merge pull request #179 from FriendsOfSymfony/move-symfony-cache-component
    By ddeboer, 2 years ago
  • Move symfony http-cache support to the FOSHttpCache library for reusability.
    By dbu, 2 years ago
  • Added subscriber options to HttpCache
    By dbu, 2 years ago
  • Moving the user context logic out of the kernel inheritance hierarchy.
    By dbu, 2 years ago