atlas_middleware 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/map_server_legend_info.rb +2 -1
  2. 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
- response.headers['Cache-Control'] = "public, max-age=#{1.month}"
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.7
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 00:00:00 -04:00
12
+ date: 2009-11-16 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency