Download the PHP package socalnick/scn-http-cache without Composer
On this page you can find all versions of the php package socalnick/scn-http-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download socalnick/scn-http-cache
More information about socalnick/scn-http-cache
Files in socalnick/scn-http-cache
Package scn-http-cache
Short Description Adds several features to help make ZF2 applications cacheable.
License BSD-3-Clause
Homepage https://github.com/SocalNick/ScnHttpCache
Informations about the package scn-http-cache
ScnHttpCache
A ZF2 module that helps implement standards based caching built into the HTTP spec and gateway caches.
Requirements
- Zend Framework 2 (2.*)
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
It is recommended to add this module to your Zend Framework 2 application using Composer. After cloning 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:
Next add the required modules to config/application.config.php:
Varnish
Installation
Varnish can be installed on any modern Linux distribution: https://www.varnish-cache.org/docs/3.0/installation/ It is also available via Homebrew on Mac OSX for development by running brew install varnish
Configuration
This is the most basic Varnish configuration for a development environment. It sets the backend host / port, sets a request header indicating Surrogate Capability, and looks for the response Surrogate Control header to initiate ESI handling. Before running Varnish in a production environment, I highly encourage you to learn more about it at https://www.varnish-cache.org/docs