opengeospatial / ogcapi-common

OGC API - Common provides those elements shared by most or all of the OGC API standards to ensure consistency across the family.
https://ogcapi.ogc.org/common
Other
45 stars 14 forks source link

Recommend use of the Vary header in version 2 of the Users Guide #323

Open ghobona opened 1 year ago

ghobona commented 1 year ago

During the 2022-11 Web Mapping Code Sprint, there was feedback that to prevent the server from caching responses in some cases, it might be necessary to use the Vary header.

ghobona commented 1 year ago

@jerstlouis Please elaborate.

jerstlouis commented 1 year ago

For resource end-points that may return a different representation for the content encoded differently based on request headers, any header value should be included as part of a Vary: response header. e.g., Vary: Accept, Accept-Encoding, Prefer

This will avoid issues with proxying / caching.