NGINX cache assets
This commit is contained in:
parent
cee04c1d6f
commit
e54a4807f7
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue