From f6542799e940b80f004a0cd508887f6db00da31e Mon Sep 17 00:00:00 2001 From: Scott van Looy Date: Mon, 17 Jan 2022 15:51:05 +0100 Subject: [PATCH] Update to not cache page-data and app-data --- entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index aa2befb..899cf6b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -22,3 +22,5 @@ else gsutil -m setmeta -h "Cache-Control:public, max-age="$INPUT_HTML_TTL gs://"$INPUT_BUCKET_NAME"/**/*.json gsutil -m setmeta -h "Cache-Control:public, max-age="$INPUT_HTML_TTL gs://"$INPUT_BUCKET_NAME"/**/*.html fi +gsutil -m setmeta -h "Cache-Control:no-cache,no-store,must-revalidate" gs://"$INPUT_BUCKET_NAME"/page-data.json +gsutil -m setmeta -h "Cache-Control:no-cache,no-store,must-revalidate" gs://"$INPUT_BUCKET_NAME"/app-data.json