From 9ae13042a2fc1d9c82474fed477097c2f17978ad Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Fri, 7 Apr 2023 12:40:17 +0530 Subject: [PATCH] Revert "chore: Add Cache-Control header for static assets" (#22174) Reverts appsmithorg/appsmith#21951 Merged by accident. --- deploy/docker/templates/nginx/nginx-app-http.conf.template.sh | 1 - deploy/docker/templates/nginx/nginx-app-https.conf.template.sh | 1 - 2 files changed, 2 deletions(-) diff --git a/deploy/docker/templates/nginx/nginx-app-http.conf.template.sh b/deploy/docker/templates/nginx/nginx-app-http.conf.template.sh index ac24c4ff7b..070dbe5287 100644 --- a/deploy/docker/templates/nginx/nginx-app-http.conf.template.sh +++ b/deploy/docker/templates/nginx/nginx-app-http.conf.template.sh @@ -76,7 +76,6 @@ server { # If the path has an extension at the end, then respond with 404 status if the file not found. location ~ ^/(?!supervisor/).*\.[a-z]+$ { try_files \$uri =404; - add_header Cache-Control "max-age=31104000, immutable"; # 360 days } location /api { diff --git a/deploy/docker/templates/nginx/nginx-app-https.conf.template.sh b/deploy/docker/templates/nginx/nginx-app-https.conf.template.sh index df415e1294..87dd877a78 100644 --- a/deploy/docker/templates/nginx/nginx-app-https.conf.template.sh +++ b/deploy/docker/templates/nginx/nginx-app-https.conf.template.sh @@ -93,7 +93,6 @@ server { # If the path has an extension at the end, then respond with 404 status if the file not found. location ~ ^/(?!supervisor/).*\.[a-z]+$ { try_files \$uri =404; - add_header Cache-Control "max-age=31104000, immutable"; # 360 days } location /api {