From 647df7d3d5ec4d83149262e5d7da8d80b3ffb13e Mon Sep 17 00:00:00 2001 From: srwang <12386424+srwang@users.noreply.github.com> Date: Thu, 25 Apr 2024 16:52:54 -0400 Subject: [PATCH] Revert "feat: stop caching prospectus app-data.json" --- .../edx/app/nginx/sites-available/prospectus.j2 | 9 --------- 1 file changed, 9 deletions(-) diff --git a/playbooks/roles/nginx/templates/edx/app/nginx/sites-available/prospectus.j2 b/playbooks/roles/nginx/templates/edx/app/nginx/sites-available/prospectus.j2 index d415836d02a..5f64e56dab1 100644 --- a/playbooks/roles/nginx/templates/edx/app/nginx/sites-available/prospectus.j2 +++ b/playbooks/roles/nginx/templates/edx/app/nginx/sites-available/prospectus.j2 @@ -120,15 +120,6 @@ server { {% endif %} } - # want to avoid caching app-data.json file as an out-of-date hash leads to the application refreshing - location /page-data/app-data.json { - port_in_redirect off; - add_header Cache-Control "no-store, max-age=0"; - proxy_pass http://edx-stage-prospectus-static.s3-website-us-east-1.amazonaws.com/71058f2-5803$request_uri; - # Hide client headers from S3 to prevent request headers too big error - proxy_pass_request_headers off; - } - # favicon is requested a lot. cache it at the edge. location /favicon.ico {