async-http-cache 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/http/cache/response.rb +6 -1
- data/lib/async/http/cache/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08cba1514e099ffea868d2c6db065da163f3b71197dc0481be150177c8eef70f'
|
4
|
+
data.tar.gz: f70d55aad88205d2d61d1f995e483fd8596ea3814cf2dcc2d09dd165665872b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91623e4eba7d1028daeb40b132da3d92167f84981f590e810a2a8170a426a1b625a59ae886ee3f0a0cff7b6e44a5ff61eba62adc0ea786f093b9d1859e4c1f7d
|
7
|
+
data.tar.gz: 72a68261b04e66422a81b4a9b9a6ff87937a0b72b42c7f68a6010e8e1021693e231bb4ef3bd80921e4aecf968e45f0111d49d4bdb331525ebf6a313732ad67d8
|
@@ -51,6 +51,9 @@ module Async
|
|
51
51
|
if cache_control.private? || !cache_control.public?
|
52
52
|
return false
|
53
53
|
end
|
54
|
+
else
|
55
|
+
# No cache control header...
|
56
|
+
return false
|
54
57
|
end
|
55
58
|
|
56
59
|
if set_cookie = @headers[SET_COOKIE]
|
@@ -66,7 +69,9 @@ module Async
|
|
66
69
|
end
|
67
70
|
|
68
71
|
def expired?
|
69
|
-
|
72
|
+
if @max_age
|
73
|
+
self.age > @max_age
|
74
|
+
end
|
70
75
|
end
|
71
76
|
|
72
77
|
def dup
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-http-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
rubygems_version: 3.
|
152
|
+
rubygems_version: 3.0.6
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Standard-compliant cache for async-http.
|