My App
Guides

Caching

Cache behavior of public map APIs.

Caching

Stable published TileJSON and style URLs use short public cache windows. Versioned TileJSON URLs use long immutable caching. Glyphs cache for one day. Static maps cache for one hour when rendered successfully. Service API responses such as geocoding and routing use the headers set by their route implementations.

Use version-pinned style and tileset URLs when a client needs immutable assets.

On this page