|
@@ -48,7 +48,7 @@ server {
|
|
|
return 404;
|
|
|
}
|
|
|
|
|
|
- location ~ \.(css|js|gif|png|jpg|jpeg|webp|woff|woff2)$ {
|
|
|
+ location ~ \.(css|js|gif|png|jpg|jpeg|webp|avif|woff|woff2)$ {
|
|
|
try_files $uri =404;
|
|
|
|
|
|
add_header Cache-Control "public,max-age=31536000,immutable";
|
|
@@ -68,7 +68,7 @@ server {
|
|
|
return 404;
|
|
|
}
|
|
|
|
|
|
- location ~ \.(css|js|gif|png|jpg|jpeg|webp|woff|woff2)$ {
|
|
|
+ location ~ \.(css|js|gif|png|jpg|jpeg|webp|avif|woff|woff2)$ {
|
|
|
try_files $uri =404;
|
|
|
|
|
|
add_header Cache-Control "public,max-age=31536000,immutable";
|
|
@@ -88,7 +88,27 @@ server {
|
|
|
return 404;
|
|
|
}
|
|
|
|
|
|
- location ~ \.(css|js|gif|png|jpg|jpeg|webp|woff|woff2)$ {
|
|
|
+ location ~ \.(css|js|gif|png|jpg|jpeg|webp|avif|woff|woff2)$ {
|
|
|
+ try_files $uri =404;
|
|
|
+
|
|
|
+ add_header Cache-Control "public,max-age=31536000,immutable";
|
|
|
+ etag off;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ location /upload/ {
|
|
|
+ location ~ ^(.+)\.v\.[0-9]+\.([^.\\/]++)$ {
|
|
|
+ try_files $1.$2 =404;
|
|
|
+
|
|
|
+ add_header Cache-Control "public,max-age=31536000,immutable";
|
|
|
+ etag off;
|
|
|
+ }
|
|
|
+
|
|
|
+ location ~ /\.ht {
|
|
|
+ return 404;
|
|
|
+ }
|
|
|
+
|
|
|
+ location ~ \.(css|js|gif|png|jpg|jpeg|webp|avif|woff|woff2)$ {
|
|
|
try_files $uri =404;
|
|
|
|
|
|
add_header Cache-Control "public,max-age=31536000,immutable";
|