[v1.0.0] Implement configurable cache key based on template strings
dechristopher opened this issue · comments
Andrew DeChristopher commented
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 |