Old cached tiles should be removed or re-rendered regularly to save space and reduce chances of stale data/styles.
Two strategies:
We could do this with an S3 bucket policy (probably the best approach, since it doesn't require interaction with the server to cull tiles)
Add a MAXAGE to the app and check it to force re-rendering tiles that have passed a certain age.
I think 15 or 30 days would be a good MAXAGE. Long enough that we'll see speed benefits for most use, aggressive enough that we'll probably reduce our storage (and bucket clutter) a lot.
Old cached tiles should be removed or re-rendered regularly to save space and reduce chances of stale data/styles.
Two strategies:
I think 15 or 30 days would be a good MAXAGE. Long enough that we'll see speed benefits for most use, aggressive enough that we'll probably reduce our storage (and bucket clutter) a lot.