Skip to content

Commit 7697d22

Browse files
authored
TCLOUD-4894: add stale-if-error (#3982)
1 parent f65c28e commit 7697d22

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy_docs_v2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ jobs:
6969
run: |
7070
aws s3 sync ./build s3://${BUCKET}/main/${RUN} \
7171
--exclude "*/index.html" \
72-
--cache-control "public, max-age=3600, stale-while-revalidate=86400"
72+
--cache-control "public, max-age=3600, stale-if-error=3600, stale-while-revalidate=86400"
7373
aws s3 sync ./build s3://${BUCKET}/main/${RUN} \
7474
--exclude "*" \
7575
--include "*/index.html" \
76-
--cache-control "max-age=300, stale-while-revalidate=86400"
76+
--cache-control "max-age=300, stale-if-error=3600, stale-while-revalidate=86400"
7777
7878
- name: Create redirects on S3
7979
uses: tinymce/tinymce-docs-generate-redirects-action@v1.0

0 commit comments

Comments
 (0)