Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable fall-back #2

Open
zerebubuth opened this issue Feb 10, 2017 · 0 comments
Open

Configurable fall-back #2

zerebubuth opened this issue Feb 10, 2017 · 0 comments

Comments

@zerebubuth
Copy link
Member

At the moment, Cocotoca will 404 if it cannot find a z16 tile to cut up. Instead, it would be useful to be able to configure different fallback strategies:

  1. Return 404. Most useful when used as a service behind a "dispatcher". At Mapzen we have used Fastly for this.
  2. Request the z16 tile from upstream and cut the result. Most useful if you want to terminate z>16 processing at Cocotoca, and not handle these at any upstream point in the stack. For example, this would stop tileserver from putting z17 tiles into the TOI.
  3. Proxy the whole request upstream, and return the result unchanged. Useful when the upstream service (like tileserver) is capable of handling any request at any zoom, and may cache the result (like tileserver).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant