sinatra-cache-assets 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +18 -0
- data/lib/sinatra/cache_assets.rb +1 -1
- metadata +4 -3
data/README.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# Sinatra::CacheAssets
|
2
|
+
|
3
|
+
This Rack middleware will add a Cache-Control header to your Sinatra static assets
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
require "sinatra"
|
8
|
+
require "sinatra/cache_assets"
|
9
|
+
|
10
|
+
use Sinatra::CacheAssets, :max_age => 7200 # seconds
|
11
|
+
|
12
|
+
get "/" do
|
13
|
+
"some data"
|
14
|
+
end
|
15
|
+
|
16
|
+
## License
|
17
|
+
|
18
|
+
MIT
|
data/lib/sinatra/cache_assets.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-cache-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Dollar
|
@@ -44,6 +44,7 @@ extra_rdoc_files: []
|
|
44
44
|
files:
|
45
45
|
- lib/sinatra/cache_assets.rb
|
46
46
|
- lib/sinatra-cache-assets.rb
|
47
|
+
- README.md
|
47
48
|
has_rdoc: true
|
48
49
|
homepage: http://github.com/ddollar/sinatra-cache-assets
|
49
50
|
licenses: []
|