PHPackages                             socalnick/scn-http-cache - 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. socalnick/scn-http-cache

ActiveLibrary

socalnick/scn-http-cache
========================

Adds several features to help make ZF2 applications cacheable.

1.1.3(13y ago)911.1k6BSD-3-ClausePHPPHP &gt;=5.3.9

Since Feb 5Pushed 12y ago3 watchersCompare

[ Source](https://github.com/SocalNick/ScnHttpCache)[ Packagist](https://packagist.org/packages/socalnick/scn-http-cache)[ Docs](https://github.com/SocalNick/ScnHttpCache)[ RSS](/packages/socalnick-scn-http-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (12)Used By (0)

ScnHttpCache
============

[](#scnhttpcache)

A ZF2 module that helps implement standards based caching built into the HTTP spec and gateway caches.

[![Build Status](https://camo.githubusercontent.com/63fd6198babc1d33f8a4a57fb989d801c48e565ea6c5421f993aa07f098e9549/68747470733a2f2f7472617669732d63692e6f72672f536f63616c4e69636b2f53636e4874747043616368652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/SocalNick/ScnHttpCache)

Requirements
------------

[](#requirements)

- [Zend Framework 2](https://github.com/zendframework/zf2) (2.\*)

Features
--------

[](#features)

- PHP implementation of a gateway cache (COMING SOON)
- Plugin for manipulating HTTP Cache headers (COMING SOON)
- Plugin for dealing with expiration and validation (COMING SOON)
- ESI View Helper
    - Very performant in Surrogate Capability mode - just renders ESI tag
    - Works w/o surrogate capability by running separate application lifecycle

Installation
------------

[](#installation)

It is recommended to add this module to your Zend Framework 2 application using Composer. After cloning [ZendSkeletonApplication](https://github.com/zendframework/ZendSkeletonApplication), add "socalnick/scn-http-cache" to list of requirements, then run php composer.phar install/update. Your composer.json should look something like this:

```
{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "homepage": "http://framework.zend.com/",
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "2.*",
        "socalnick/scn-http-cache": "1.*"
    }
}

```

Next add the required modules to config/application.config.php:

```
