raptorswing / MapGraphics

A tile-based "slippy map" library written in/for C++/Qt. It's meant to enable C++/Qt developers to easily add nice, interactive maps to their applications. Supports zooming, rotating, interactive custom map objects, transparency, etc. It is a Qt map widget that can use tiles from MapQuest, Openstreetmap, or a custom source you define.
Other
163 stars 77 forks source link

Tile Cache timeout should be based on the HTTP headers returned with the tile #3

Closed raptorswing closed 9 years ago

raptorswing commented 12 years ago

When a tile is fetched, the HTTP server probably returns a header indicating how long the tile should be cached. MapTileSource should use that information, if present, to decide how long to keep tiles in cache.

raptorswing commented 9 years ago

Fixed with recent commits - the code now honors the Cache-Control header's max-age directive.