[MapProxy] Force client side cache refresh

Oliver Tonnhofer olt at omniscale.de
Thu Jun 12 02:44:13 PDT 2014


On 12.06.2014, at 10:49, BERÉNYI Attila wrote:
> That is the only solution I could think of as well, I was just wondering how the OSM guys do it as it seems they do not use any parameter...
> ETag? Cache-contol?

ETag and Cache-Control headers are supported for the tile/tms services and MapProxy will return 304 if a client re-requests a tile that hasn't been changed. MapProxy sets the max-age to 8 hours, so all clients should re-request within that time frame, but you can't force a client to make these re-requests from a fixed time on (e.g. after a reseed).

You can change the max-age with the global expires_hours option: http://mapproxy.org/docs/latest/configuration.html#tiles


Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.com
http://mapproxy.org | https://github.com/olt    | @oltonn









More information about the MapProxy mailing list