azavea / osmesa

OSMesa is an OpenStreetMap processing stack based on GeoTrellis and Apache Spark
Apache License 2.0
80 stars 26 forks source link

Add max age headers for s3 put requests #60

Closed moradology closed 6 years ago

moradology commented 6 years ago

Ideally, our tiles will be updated on some continuous basis. Long running client applications will need information about the expected duration of caching. This PR provides that information by way of amax-age setting on the Cache-Control header

moradology commented 6 years ago

@mojodna as you can see, the max age is pretty specific to the non-zipped case and I've shoehorned the max-age logic into the MakeTiles function; I don't think it will cause a problem, but there's a faint code smell from the partial application I'm doing there...

moradology commented 6 years ago

Stale; would be simpler to write fresh than fix this https://github.com/azavea/osmesa/issues/85