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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 923d97088cda9896dcec9c48c21b6142fc9002acfc15ae70a5cb6fac4eacf086
4
- data.tar.gz: 9819dd06fa5f44a42c7b9f866477fa163df6e857ce0c5618306f5962f2bbfcc1
3
+ metadata.gz: '08cba1514e099ffea868d2c6db065da163f3b71197dc0481be150177c8eef70f'
4
+ data.tar.gz: f70d55aad88205d2d61d1f995e483fd8596ea3814cf2dcc2d09dd165665872b3
5
5
  SHA512:
6
- metadata.gz: c1ffbd84fe0928014e500f0290a25720581e50ef688e30ad8161fd3b62ea7a6acc21fe2b40a12cf47ef0f3ec2e007e2613f63cb4fdf1518bf324ae88c63b58ad
7
- data.tar.gz: e4ece204ed54c4d23c1e831d887ae2b7cb169e702b80e890f4bac5438f393fb31c15a873f494ac1ffcc1d3a88663b4eb12e0abb2c95c9fee4e4f030771158b8c
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
- self.age > @max_age
72
+ if @max_age
73
+ self.age > @max_age
74
+ end
70
75
  end
71
76
 
72
77
  def dup
@@ -23,7 +23,7 @@
23
23
  module Async
24
24
  module HTTP
25
25
  module Cache
26
- VERSION = "0.1.1"
26
+ VERSION = "0.1.2"
27
27
  end
28
28
  end
29
29
  end
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.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-12 00:00:00.000000000 Z
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.1.2
152
+ rubygems_version: 3.0.6
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Standard-compliant cache for async-http.