excursion 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/excursion/asset_middleware.rb +2 -0
- data/lib/excursion/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b97ac8d0b583333857d70fbf9988f5898310120a
|
4
|
+
data.tar.gz: e48f2b27571cec68d56f3ee8e31b2b02e9005e01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bcea36a7d986bd130eb11b27dc360efb82ddf43cec88a93fa0c781677325023fc4a7620dc883e34f996e56910f53aa004c9a358c6345cda2a030e66a2979db8
|
7
|
+
data.tar.gz: de20b9681da8568ffb3aa72ebe51b9346f274d716a22d4d443cca3a370364d3627e77895d734466562e1e980be6e4904b4eaa256884eea4ab0016fa17455b96c
|
@@ -8,6 +8,8 @@ module Excursion
|
|
8
8
|
request = Rack::Request.new(env)
|
9
9
|
response = @app.call(env)
|
10
10
|
if request.path =~ /^\/assets\/excursion\//
|
11
|
+
response[1]["Cache-Control"] = 'no-cache, no-store'
|
12
|
+
response[1]["Etag"] = Digest::MD5.hexdigest(Excursion::Pool.all_applications.values.map(&:to_cache).to_json.to_s)
|
11
13
|
response[1]["Last-Modified"] = Time.at(Excursion::Pool.pool_updated).strftime('%a, %d %b %Y %H:%M:%S %Z')
|
12
14
|
end
|
13
15
|
response
|
data/lib/excursion/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: excursion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Rebec
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|