Skip to content

s3 pmtiles Cache-Control metadata & CloudFront cache policy #158

Answered by bdon
pdebruic asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks, I've updated the docs to specify that CachingOptimized should be selected for cache policy. It should set a default TTL of 86400 seconds. I don't think that setting metadata on each file should be needed as that's an extra step.

The docs should address CORS + CloudFront already.

The one possibility this doesn't handle is if you want different cache TTLs applied to different PMTiles files. This is technically possible but the Lambdas as implemented don't pass this information through yet. Is that what you were hoping to achieve?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bdon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants