Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 authored Dec 7, 2021
1 parent fe89df7 commit 4ebed9a
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}
}

0 comments on commit 4ebed9a

Please sign in to comment.