From b4570847e29be76eb7ebf706ee9b02fd8474abcb Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Mon, 10 Apr 2023 13:25:17 +0530 Subject: [PATCH] chore: Disable all caching during dev time (#22173) Caching causes more problems than it solves, during development time. This PR explicitly disables all cache during development. --- app/client/start-https.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/client/start-https.sh b/app/client/start-https.sh index 67a6f3a957..efe890d6ee 100755 --- a/app/client/start-https.sh +++ b/app/client/start-https.sh @@ -262,6 +262,11 @@ $(if [[ $use_https == 1 ]]; then echo " # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors add_header Content-Security-Policy \"frame-ancestors ${APPSMITH_ALLOWED_FRAME_ANCESTORS-'self' *}\"; + # Disable caching completely. This is dev-time config, caching causes more problems than it solves. + # Taken from . + add_header Cache-Control 'no-store, must-revalidate' always; + proxy_hide_header Cache-Control; # Hide it, if present in upstream's response. + sub_filter_once off; location / { proxy_pass $frontend;