Caching
Browser and CDN cache profiles, ETags and compression.
Every response carries Cache-Control for browsers and CDN-Cache-Control for CDNs from one of the http_cache.* profiles: icons, canonical redirects, fallback_transient, fallback_stable and errors. Real icons stay in CDNs for 30 days by default.
- Use the full URL as the cache key; there is no
Varyexcept for compression. fallback_transientresponses live for 10 seconds, so a flood or a cold queue is never cached for long. Onqueuedoroverloaded, retry after a short pause withcache: "reload".- Honour
ETag/If-None-Match; revalidation is cheap. - Stored icons are sent gzipped to clients that send
Accept-Encoding: gzip, withVary: Accept-Encodingand their ownETag(suffix-gz). Generated fallbacks are never compressed.http_cache.compression = "off"sends raw SVG. - A stale entry is served with
X-Icon-Stale: truewhile a refresh runs in the background.
Server-side cache backends and TTLs are in Storage and cache.