Registry / web-framework / slim-http-cache

slim-http-cache

JSON →
library1.3.0phppackagistunverified

Slim Framework HTTP cache middleware and service provider for caching responses.

composer require slim/http-cache
INSTALL
IMPORT
SIG · SLIM-HTTP-CACHE
S
slim-http-cache
web-frameworkphpv1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cache
use Slim\HttpCache\Cache;

Adds HTTP cache middleware to a Slim application.

use Slim\HttpCache\Cache; $app = new \Slim\App(); $app->add(new Cache()); $app->get('/foo', function ($req, $res) { return $res->withHeader('Cache-Control', 'public, max-age=3600'); });
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
slim-http-cache — pip install slim-http-cache · libregistry