dechristopher / lod

LOD is an intelligent map tile caching proxy for the edge.

Home Page:https://lod.tile.fund

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[v1.0.0] Implement configurable cache key based on template strings

dechristopher opened this issue · comments

The cache key for a given proxy configuration should be configurable with a template. Default template tokens are {x}, {y}, and {z} and should be required. Any configured URL query parameters should be available by name.

Examples:

Description Template Result
Default template if none provided {z}/{x}/{y} 10/42/-71
Custom prefix osm/{z}/{x}/{y} osm/10/42/-71
With URL param some_id = 4 osm/{z}/{x}/{y}:{some_id} osm/10/42/-71:4