LocalData / localdata-tiles

A tileserver for LocalData
5 stars 2 forks source link

S3 cache: regular tiles and layers are put in different locations #139

Open hampelm opened 9 years ago

hampelm commented 9 years ago

We're putting regular tiles in $S3_BUCKET/$NAME/$surveyID but cached layer tiles in $S3_BUCKET/$NAME/surveys/$surveyID.

Eg:

https://localdata-tiles.s3.amazonaws.com/production-tiles/surveys/fb6dbc30-7bd9-11e4-abaf-a39ffd5c50e6/layers/0adcbf0ffe34b2d0fc283a46331395a5491b3487/tiles/18/72882/98804.png

vs

https://localdata-tiles.s3.amazonaws.com/production-tiles/9d3ced80-6cc1-11e2-be36-692120106a91/tiles/18/70600/96988.png

We should standardize on one or the other for easier cache clearing.

prashtx commented 9 years ago

The cached tile locations are based on the original URL. I'd support modifying the legacy tile URL for consistency, but we'll need to change the dashboard to match.