Skip to content
Latchkey

Content Hash - CI/CD Glossary Definition

A content hash is derived from a file contents and used in its filename so identical builds produce identical names.

A content hash is a hash computed from a file contents, used in output filenames so the name changes if and only if the content does. Webpack exposes it as the [contenthash] placeholder.

Unlike a per-build hash, a content hash stays stable when a file is unchanged, maximizing cache reuse across deploys. It is the foundation of cache busting and long-term caching. In CI, deterministic content hashes also make builds reproducible.

Related guides

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