From 4ebed9a17acc943f53af624722167c1cdf6d2ed8 Mon Sep 17 00:00:00 2001 From: Marri Harish Date: Tue, 7 Dec 2021 15:01:28 +0530 Subject: [PATCH] Update nginx.conf --- nginx.conf | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/nginx.conf b/nginx.conf index 71f8923..263ca89 100644 --- a/nginx.conf +++ b/nginx.conf @@ -2,19 +2,7 @@ server { listen 80; location / { - root /usr/share/nginx/html/; - include /etc/nginx/mime.types; + root /usr/share/nginx/html/build; try_files $uri $uri/ /index.html; } - - # Cache static assets - location ~* \.(?:jpg|jpeg|gif|png|ico|svg)$ { - expires 7d; - add_header Cache-Control "public"; - } - - # Cache css and js bundle - location ~* \.(?:css|js)$ { - add_header Cache-Control "no-cache, public, must-revalidate, proxy-revalidate"; - } -} \ No newline at end of file +}