From 9c3ec02a97f37cce15899b1133136a4559649a7c Mon Sep 17 00:00:00 2001 From: tiny-mcg Date: Wed, 11 Feb 2026 17:44:43 +1100 Subject: [PATCH] TCLOUD-4894: add stale-if-error --- .github/workflows/deploy_docs_v2.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_docs_v2.yml b/.github/workflows/deploy_docs_v2.yml index 4cc8b32e25..66b4fdd8e7 100644 --- a/.github/workflows/deploy_docs_v2.yml +++ b/.github/workflows/deploy_docs_v2.yml @@ -69,11 +69,11 @@ jobs: run: | aws s3 sync ./build s3://${BUCKET}/main/${RUN} \ --exclude "*/index.html" \ - --cache-control "public, max-age=3600, stale-while-revalidate=86400" + --cache-control "public, max-age=3600, stale-if-error=3600, stale-while-revalidate=86400" aws s3 sync ./build s3://${BUCKET}/main/${RUN} \ --exclude "*" \ --include "*/index.html" \ - --cache-control "max-age=300, stale-while-revalidate=86400" + --cache-control "max-age=300, stale-if-error=3600, stale-while-revalidate=86400" - name: Create redirects on S3 uses: tinymce/tinymce-docs-generate-redirects-action@v1.0