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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES +4 -0
  3. data/lib/rack/cache/response.rb +2 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfb363c288fc5d951b0907ad39991bc5daee24c0
4
- data.tar.gz: 0d7e5ce084a38ffed3bb41e87da26e5fb6e83ac6
3
+ metadata.gz: d6532f8a00a3de52c0271c2524286ace2a344f75
4
+ data.tar.gz: 611a3881d190a0a60d40e412781a5fb0b55258ec
5
5
  SHA512:
6
- metadata.gz: 3f29d10714d8cc5e746556d71866493e76489d6ec2a6ff2a9a1f02ed4eb1a6a7764c7dd863f76493ac4e11f253d2aae1886dc7732afda511150c63562de02492
7
- data.tar.gz: 08ca84c212fb3e3f482004ec806460f218777fc61efecd6640a6e2e384fd298461edbe1f37cfc4d1c3d0483c48e8e97e014cb82be88fcfd180cd528b69094485
6
+ metadata.gz: a48fa28f5b3e6808530f823359babb24df80c92cfd5c94531f7a9a5daebf53f7f18f133dda1a4d32a0c673fe5cc9e682920ec0f1e78d7be11d72070873e174f2
7
+ data.tar.gz: 858c81e37258eb87095bbeb0c9a961a52e46dc9b7f41b76bc574fb9bfc5cb821c7078ccff1bbf3956083eafb01e09bcdb9024955e2d2274f967f5c4bed1cc42f
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.4.1
2
+
3
+ * Ignore invalid Expires date as per RFC
4
+
1
5
  ## 1.4.0
2
6
 
3
7
  * Not invalidating the cache for preflight CORS request
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tomayko