rack-cache-tags 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/cache/tags.rb +2 -4
- data/lib/rack_cache_tags/version.rb +1 -1
- metadata +4 -4
data/lib/rack/cache/tags.rb
CHANGED
@@ -27,10 +27,8 @@ module Rack
|
|
27
27
|
|
28
28
|
def call(env)
|
29
29
|
status, headers, body = app.call(env)
|
30
|
-
if status == 200
|
31
|
-
|
32
|
-
purge(headers) if headers.key?(PURGE_TAGS_HEADER)
|
33
|
-
end
|
30
|
+
store(Rack::Request.new(env).url, headers[TAGS_HEADER]) if status == 200 && headers.key?(TAGS_HEADER)
|
31
|
+
purge(headers) if headers.key?(PURGE_TAGS_HEADER)
|
34
32
|
[status, headers, body]
|
35
33
|
end
|
36
34
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-cache-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sven Fuchs
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-26 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|