Skip to content

Use HTTP status 204 for empty tiles#37

Open
yomatters wants to merge 3 commits intofaradayio:masterfrom
CUUATS:master
Open

Use HTTP status 204 for empty tiles#37
yomatters wants to merge 3 commits intofaradayio:masterfrom
CUUATS:master

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