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

Use HTTP status 204 for empty tiles #37

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

yomatters
Copy link

Mapbox GL JS throws Error: http status 200 returned without content when it encounters a tile with no features. The Mapbox team recommends using HTTP status code 204 to indicate the absence of tile data. (See mapbox/mapbox-gl-js#1800.)

Matt Yoder and others added 3 commits September 6, 2017 13:17
Currently, a pg pool was created for each request : this is bad, as each pool keeps a connection to the db so it can reuse it. This caused issue faradayio#36 for me. 
By following the example here : https://github.com/brianc/node-postgres/tree/v6.4.1 the pool must be created only once, and reused across requests (that's the purpose of a pool).
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

Successfully merging this pull request may close these issues.

2 participants