Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding cache control headers #8575

17 changes: 7 additions & 10 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
server {

listen 80;
root /usr/share/nginx/html;
error_page 500 502 503 504 /50x.html;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
location = /index.html {
expires 6h;
}

error_page 500 502 503 504 /50x.html;

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

}
Loading