Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/swordray/rails-cache_control
- Owner: swordray
- License: other
- Created: 2014-02-23T13:41:06.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-01-28T04:07:40.000Z (about 3 years ago)
- Last Synced: 2023-08-15T07:10:31.621Z (over 1 year ago)
- Topics: actionpack, cache, cache-control, caching, rails, ruby
- Language: Ruby
- Homepage:
- Size: 9.77 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).