atlas_middleware 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/map_server_legend_info.rb +2 -1
- metadata +2 -2
@@ -10,7 +10,8 @@ class MapServerLegendInfo
|
|
10
10
|
begin
|
11
11
|
response = Rack::Response.new(get_legends(request), 200, headers)
|
12
12
|
# set caching information
|
13
|
-
|
13
|
+
age = request['image_return_url'] == 'true' ? 20.minutes : 1.month
|
14
|
+
response.headers['Cache-Control'] = "public, max-age=#{age}"
|
14
15
|
rescue Exception => e
|
15
16
|
response = Rack::Response.new({ :error => e.message }.to_json, 500, headers)
|
16
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atlas_middleware
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Casey
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-16 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|