[Geoserver-devel] [JIRA] (GEOS-10082) OGC API Tiles should return an empty payload, or a 204, on empty tiles

Andrea Aime created an issue

GeoServer / BugGEOS-10082

OGC API Tiles should return an empty payload, or a 204, on empty tiles

Issue Type:

BugBug

Assignee:

Unassigned

Created:

27/May/21 12:59 PM

Priority:

MediumMedium

Reporter:

Andrea Aime

According to the spec:

If the requested tile is empty, either a 200 response with an empty file (e.g. a 0 byte file if valid for the requested format, or a PNG with internal headers and no “pixels”) or an HTTP status code 204 with no content SHALL be returned.

Rigth now we have no way to know the content of the tile is empty, though we might perform guesses on a format by format basis.

The KML tile encoder has some notion of 204 handling, but it happens while bulding the tiles.
Indeed I guess we could just always throw a 204 and never cache contents, the tile producers should lend a hand and let us know if they have renderered any feature/pixel.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100163-sha1:58f13a2)

Atlassian logo