Hash
I updated the website, so why does it still show the old content?
I updated the website, so why does it still show the old content?
const message = "Hello";First 8 hex digits of SHA-256:
d3cc7661<script src="message.d3cc7661.js">This example hashes the UTF-8 file contents with SHA-256 and uses only the first 8 hex digits in the filename. The page references this file and displays Hello.
Matching and differing digests: With the same algorithm, encoding, and other conditions, identical contents yield identical digests. Different digests show different inputs. Matching digests can still be a collision, especially after truncation. A full SHA-256 hex digest has 64 digits; other algorithms can have different lengths.
Downloads and Git: Compare a download using the same algorithm against a digest from a trusted channel. If both file and comparison value are replaced, a match does not prove authenticity. Git hashes objects; commit contents also include parent commits and commit metadata. A short hash must distinguish the object within the current repository.
The site still shows old content after deployment. Check content hashes in build output, resource references in the entry page, and caching. Compare filenames before and after the edit, rebuild unchanged content to check hash stability, and verify that revisiting loads the new file.
Build in 3D. Put your computer to work.