Cache maps

When caching the content in your client, HERE recommends caching the content for 3600 seconds as indicated by the response header 'max-age=3600'. Use tile caching when you are not requesting a specific map version. If you always want the latest version of the map, but also want also to take advantage of caching, use the ETag Header Field.

In this case, when you request a tile, you receive an ETag header.

ETag: "d88205d1d104dd7a78d844268459ef5f::55"

You can request the same tile and pass the If-None-Match header with the value previously returned by the ETag header.

If-None-Match: "d88205d1d104dd7a78d844268459ef5f::55"

If the tile in the server matches your ETag, then the server returns HTTP 304 Not Modified without a body.

HTTP/1.1 304 Not Modified
ETag: "d88205d1d104dd7a78d844268459ef5f::55"
Cache-Control: max-age=3600

If the tile does not match your ETag, then the server returns HTTP 200 with the new ETag value along with the new tile.

HTTP/1.1 200 OK
ETag: "d88205d1d104dasdfa378d844268459ef5f::56"
Cache-Control: max-age=3600

results matching ""

    No results matching ""