Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/swordray/rails-cache_control

Autotomicly add HTTP Cache-control header when caches_action expires_in specified
https://github.com/swordray/rails-cache_control

actionpack cache cache-control caching rails ruby

Last synced: 3 months ago
JSON representation

Autotomicly add HTTP Cache-control header when caches_action expires_in specified

Awesome Lists containing this project

README

        

# rails-cache_control

[![Gem Version](https://badge.fury.io/rb/rails-cache_control.png)](http://badge.fury.io/rb/rails-cache_control)
[![Build Status](https://secure.travis-ci.org/swordray/rails-cache_control.png?branch=master)](http://travis-ci.org/swordray/rails-cache_control)
[![Dependency Status](https://gemnasium.com/swordray/rails-cache_control.png?travis)](https://gemnasium.com/swordray/rails-cache_control)
[![Code Climate](https://codeclimate.com/github/swordray/rails-cache_control.png)](https://codeclimate.com/github/swordray/rails-cache_control)

Automatically add HTTP Cache-control header when [caches_action](https://github.com/rails/actionpack-action_caching) :expires_in specified.

## Requirements

* Ruby ~> 2.0
* Rails ~> 4.0
* actionpack-action_caching ~> 1.1

## Installation

Include the gem in your Gemfile:

```ruby
gem 'rails-cache_control'
```

## Usage

Do nothing.

## Sponsors

* [BaiLu ShuYuan](https://bailushuyuan.org)

## License

Copyright © 2014 Jianqiu Xiao under The [MIT License](http://opensource.org/licenses/MIT).