From 4d2a3bf7409284115cd4abb965823d9b2abe203a Mon Sep 17 00:00:00 2001 From: Grace Kind Date: Sat, 11 Jul 2026 13:26:15 -0500 Subject: [PATCH] Add cache salt --- eleventy.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eleventy.config.js b/eleventy.config.js index e9df8e17..43fc7265 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -17,6 +17,9 @@ async function transformFiles(filePaths, replacer) { const BUILD_DIR = process.env.BUILD_DIR || "build"; +// Bump to bust cache +const CACHE_SALT = "1"; + export default async function (eleventyConfig) { eleventyConfig.addPassthroughCopy("src/js"); eleventyConfig.addPassthroughCopy("src/css"); @@ -126,6 +129,7 @@ export default async function (eleventyConfig) { const hashedUrlPath = (filePath) => { const hash = crypto .createHash("sha256") + .update(CACHE_SALT) .update(fs.readFileSync(filePath)) .digest("hex") .slice(0, 10); -- 2.51.2