Skip to content

Commit

Permalink
Adding cache control headers (#8622)
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak authored Sep 25, 2024
1 parent 60068ad commit f5152fc
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
server {
listen 80;
root /usr/share/nginx/html;

include mime.types;
types {
text/javascript js mjs;
}

listen 80;
location = /index.html {
expires 6h;
}

location / {
root /usr/share/nginx/html;
index index.html index.htm;
expires 7d;
try_files $uri $uri/ /index.html;
}

error_page 500 502 503 504 /50x.html;

location = /50x.html {
root /usr/share/nginx/html;
}
}

0 comments on commit f5152fc

Please sign in to comment.