fix: register new favicon assets
This commit is contained in:
@@ -6,6 +6,27 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location = /favicon.ico {
|
||||
try_files /favicon.ico =404;
|
||||
access_log off;
|
||||
expires 7d;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
|
||||
location ~ ^/(?:favicon-(?:16x16|32x32|96x96)|apple-icon-(?:57x57|60x60|72x72|76x76|114x114|120x120|144x144|152x152|180x180)|android-icon-(?:36x36|48x48|72x72|96x96|144x144|192x192)|ms-icon-(?:70x70|144x144|150x150|310x310))\.png$ {
|
||||
try_files $uri =404;
|
||||
access_log off;
|
||||
expires 7d;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
|
||||
location ~ ^/(?:manifest\.json|browserconfig\.xml)$ {
|
||||
try_files $uri =404;
|
||||
access_log off;
|
||||
expires 1h;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user