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