Browse files

Documented new "maximum cache age" option for layers

  • Loading branch information...
1 parent 8bd4250 commit 03957d2888f870a24f9b2ec223d0c4fe1abaa685 @migurski migurski committed Jan 25, 2012
Showing with 7 additions and 2 deletions.
  1. +6 −1 API.html
  2. +1 −1 TileStache/Core.py
View
7 API.html
@@ -784,7 +784,12 @@
<dt>maximum cache age</dt>
<dd>
- An optional string that TODO write me
+ An optional number of seconds used to control behavior of downstream caches.
+ Causes TileStache responses to include
+ <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9">Cache-Control</a>
+ and <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21">Expires</a>
+ HTTP response headers. Useful when TileStache is itself hosted behind an HTTP
+ cache such as Squid, Cloudfront, or Akamai.
</dd>
<dt>jpeg options</dt>
View
2 TileStache/Core.py
@@ -217,7 +217,7 @@ class Layer:
Value for the Access-Control-Allow-Origin HTTP response header.
max_cache_age:
- TODO write me
+ Number of seconds that tiles from this layer may be cached by downstream clients.
preview_lat:
Starting latitude for slippy map layer preview, default 37.80.

0 comments on commit 03957d2

Please sign in to comment.