From 39077e2024f75e4ad3bed6790b1d413df64e54de Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Fri, 25 Sep 2026 16:49:50 +0100 Subject: [PATCH 1/2] Fix asset cache headers Leading **/ to cover prefixed deploys which sadly resolve against the prefixed path. --- deployment.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment.cjs b/deployment.cjs index 212da9dbf..5abdf1d0b 100644 --- a/deployment.cjs +++ b/deployment.cjs @@ -33,7 +33,7 @@ module.exports = { "**/**.html": { CacheControl: "public, max-age=0, must-revalidate", }, - "static/**": { CacheControl: "public, max-age=31536000, immutable" }, + "**/assets/**": { CacheControl: "public, max-age=31536000, immutable" }, "**/**/!(sw).js": { CacheControl: "public, max-age=31536000, immutable" }, "**/**.css": { CacheControl: "public, max-age=31536000, immutable" }, }, From 289fcdbb6dc6ba152cf4d529caedce203d96a7e6 Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Sat, 26 Sep 2026 12:30:14 +0100 Subject: [PATCH 2/2] Temporarily force uploads --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd423e76b..a8a74a51a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -80,7 +80,7 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.WEB_DEPLOY_AWS_SECRET_ACCESS_KEY }} # Set to 1 for one deploy after changing params in deployment.js, # as unchanged files are otherwise skipped. - WEBSITE_DEPLOY_FORCE: 0 + WEBSITE_DEPLOY_FORCE: 1 - run: npm run invalidate if: github.repository_owner == 'microbit-foundation' && (env.STAGE == 'REVIEW' || success()) env: