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: diff --git a/deployment.cjs b/deployment.cjs index 272b666eb..143ff6c52 100644 --- a/deployment.cjs +++ b/deployment.cjs @@ -31,7 +31,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" }, },