NGINX cache assets
This commit is contained in:
parent
cee04c1d6f
commit
e54a4807f7
@ -6,6 +6,11 @@ http {
|
|||||||
server {
|
server {
|
||||||
error_page 404 /index.html;
|
error_page 404 /index.html;
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
location /assets {
|
||||||
|
expires 1y;
|
||||||
|
log_not_found off;
|
||||||
|
access_log off;
|
||||||
|
}
|
||||||
location = /index.html {
|
location = /index.html {
|
||||||
add_header Cache-Control 'no-store';
|
add_header Cache-Control 'no-store';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user