From 1a56e292213256791b2624d974136eff378f5025 Mon Sep 17 00:00:00 2001 From: Abhinav Sarkar Date: Mon, 1 Jun 2020 11:25:13 +0530 Subject: [PATCH] Changes site Cache-Control header --- nginx-conf/site.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nginx-conf/site.conf b/nginx-conf/site.conf index 892bcfb..b0cdc30 100644 --- a/nginx-conf/site.conf +++ b/nginx-conf/site.conf @@ -22,7 +22,9 @@ server { } location / { - proxy_pass http://site:3000; + proxy_pass http://site:3000; + proxy_hide_header Cache-Control; + add_header Cache-Control "public,max-age=300,s-maxage=900"; } # Block Bad Bots