Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jcf/ring-cache-buster

Ring middleware that tells the world to cache nothing
https://github.com/jcf/ring-cache-buster

Last synced: 1 day ago
JSON representation

Ring middleware that tells the world to cache nothing

Awesome Lists containing this project

README

        

# Ring-Cache-Buster

[![Build Status](https://travis-ci.org/listora/ring-cache-buster.svg?branch=master)](https://travis-ci.org/listora/ring-cache-buster)

Ring middleware for preventing caching.

This middleware adds a [`Cache-Control`][] header to all wrapped responses that
instruct others to never cache the generated response. This affects both edge
caches and browser caches.

## Installation

Add the following dependency to your `project.clj`:

[listora/ring-cache-buster "0.2.0"]

## License

Copyright © 2014 Listora

Released under the MIT license, same as Ring.

[`Cache-Control`]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html