rack-cache 1.3.1 → 1.4.0

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/context.rb +5 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b848acb12bc2ac549c7666818f7d92a05785348
4
- data.tar.gz: f95c664d9406344bcf27c837c9d34b09915eaadd
3
+ metadata.gz: d61bb5d7f4bba289502c1aa5d382520668fecc64
4
+ data.tar.gz: 2c5a3f2cc3ae4abac413f359f2eb4368207783e1
5
5
  SHA512:
6
- metadata.gz: 8a5d31e4404bf8ab7431074e8d1424514d75d742f1bf54ed412d1db823b9dded74085c2493bc1438febc93969eef0e97c0a770ae82db17f2ccd40b8ad2849ae2
7
- data.tar.gz: e3af09f58fca17329bb49450762d591185085fa17c667ea84b91ad36368839b8f83f33f9c48a166b62fcf22e0c9b9c5c54ddd77747f83ed0ed1e4dab0afbf76e
6
+ metadata.gz: 01fc1f845c71674c31f4ab6b13038c4bdec195e4bfffbe93d64195f0a1190b6899d57192f1037e6524a31bae6e18eaeda6d5f5aa003936712e36d1157e5ba277
7
+ data.tar.gz: 1563459bfd4ad0a35ec8aee09f57165c6052f2d1cb3cfd191e91456e7c6840ac9e85907698d78f112e628be54ad9099a17ce37e600f6a2d469f9e69fcf20b5a5
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.4.0
2
+
3
+ * Not invalidating the cache for preflight CORS request
4
+
1
5
  ## 1.3.1 / October 2015
2
6
 
3
7
  * Support Ruby 1.9
@@ -68,7 +68,11 @@ module Rack::Cache
68
68
  pass
69
69
  end
70
70
  else
71
- invalidate
71
+ if @request.options?
72
+ pass
73
+ else
74
+ invalidate
75
+ end
72
76
  end
73
77
 
74
78
  # log trace and set X-Rack-Cache tracing header
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.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tomayko