NGINX cache assets

This commit is contained in:
Philipp Dormann 2021-04-16 18:09:30 +02:00
parent cee04c1d6f
commit e54a4807f7
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,11 @@ http {
server {
error_page 404 /index.html;
root /usr/share/nginx/html;
location /assets {
expires 1y;
log_not_found off;
access_log off;
}
location = /index.html {
add_header Cache-Control 'no-store';
}