rack-cache 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +4 -0
- data/lib/rack/cache/response.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6532f8a00a3de52c0271c2524286ace2a344f75
|
4
|
+
data.tar.gz: 611a3881d190a0a60d40e412781a5fb0b55258ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a48fa28f5b3e6808530f823359babb24df80c92cfd5c94531f7a9a5daebf53f7f18f133dda1a4d32a0c673fe5cc9e682920ec0f1e78d7be11d72070873e174f2
|
7
|
+
data.tar.gz: 858c81e37258eb87095bbeb0c9a961a52e46dc9b7f41b76bc574fb9bfc5cb821c7078ccff1bbf3956083eafb01e09bcdb9024955e2d2274f967f5c4bed1cc42f
|
data/CHANGES
CHANGED
data/lib/rack/cache/response.rb
CHANGED
@@ -164,6 +164,8 @@ module Rack::Cache
|
|
164
164
|
# The value of the Expires header as a Time object.
|
165
165
|
def expires
|
166
166
|
headers['Expires'] && Time.httpdate(headers['Expires'])
|
167
|
+
rescue ArgumentError
|
168
|
+
nil
|
167
169
|
end
|
168
170
|
|
169
171
|
# The number of seconds after which the response should no longer
|