PHPackages                             palanik/slim-no-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. [HTTP &amp; Networking](/categories/http)
4. /
5. palanik/slim-no-cache

ActiveLibrary[HTTP &amp; Networking](/categories/http)

palanik/slim-no-cache
=====================

no-cache response headers setting middleware for PHP Slim.

v0.0.1(11y ago)04711[1 PRs](https://github.com/palanik/SlimNoCache/pulls)MITPHP

Since Mar 19Pushed 11y ago2 watchersCompare

[ Source](https://github.com/palanik/SlimNoCache)[ Packagist](https://packagist.org/packages/palanik/slim-no-cache)[ Docs](https://github.com/palanik/SlimNoCache)[ RSS](/packages/palanik-slim-no-cache/feed)WikiDiscussions master Synced today

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

SlimNoCache
===========

[](#slimnocache)

PHP [Slim Framework](http://www.slimframework.com/) middleware to set no-cache response headers.

The implmentation is based on SO [discussion](http://stackoverflow.com/a/13640164) on [Browser cache](http://stackoverflow.com/questions/13640109/how-to-prevent-browser-cache-for-php-site).

[![Latest Stable Version](https://camo.githubusercontent.com/cd96c157223c620a9f0d692b510ec1591c6936972d66c9b892520fb2d50abdcd/68747470733a2f2f706f7365722e707567782e6f72672f70616c616e696b2f736c696d2d6e6f2d63616368652f762f737461626c652e737667)](https://packagist.org/packages/palanik/slim-no-cache)[![License](https://camo.githubusercontent.com/ea7edb499f59e35cb20cd68e4ccc7b4ae3a926a2488f6f603132964aa1de59bf/68747470733a2f2f706f7365722e707567782e6f72672f70616c616e696b2f736c696d2d6e6f2d63616368652f6c6963656e73652e737667)](https://github.com/palanik/SlimNoCache/blob/master/LICENSE)

Usage
-----

[](#usage)

### Composer Autoloader

[](#composer-autoloader)

#### Install with [Composer](https://packagist.org/packages/palanik/slim-no-cache)

[](#install-with-composer)

1. Update your `composer.json` to require `palanik/slim-no-cache` package.
2. Run `composer install` to add palanik/SlimNoCache your vendor folder.

```
{
  "require": {
    "palanik/slim-no-cache": "*"
  }
}
```

#### Autoloading

[](#autoloading)

```
