Skip to main content

Module cache_headers

Module cache_headers 

Source
Expand description

CDN-friendly HTTP caching headers for tile servers and geospatial APIs.

Structs§

CacheHeaders
A complete set of cache-related HTTP response headers.
ETag
An HTTP ETag header value, either strong or weak.
TileCacheStrategy
Zoom-level-aware caching strategy for map tiles.
VaryHeader
Builder for the HTTP Vary response header.

Enums§

CacheError
Errors produced by cache-header operations.
CachePolicy
Describes how a response should be cached by browsers and CDNs.

Functions§

format_http_date
Formats a Unix timestamp (seconds since 1970-01-01T00:00:00Z) as an HTTP date string, e.g. "Thu, 01 Jan 1970 00:00:00 GMT".