Skip to content
Latchkey

Long-Term Caching - CI/CD Glossary Definition

Long-term caching serves hashed assets with a far-future expiry so returning users skip the download entirely.

Long-term caching is serving static assets with a far-future cache lifetime so browsers reuse them across visits. It is safe only when filenames include a content hash that changes on every content change.

Pairing content-hashed filenames with a long max-age (often marked immutable) lets browsers cache assets for a year while still fetching updates when content changes. In CI, the production build produces the hashed filenames this strategy depends on.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →