🐛 Fix 404 errors

This commit is contained in:
Alejandro Alonso
2023-07-06 09:48:13 +02:00
committed by Andrey Antukh
parent 49df4a9404
commit bfc490bd63
5 changed files with 55 additions and 11 deletions

View File

@@ -192,10 +192,18 @@ http {
}
location / {
location ~ ^/(/|css|fonts|images|js|wasm) {
}
location ~ ^/[^/]+/(.*)$ {
return 301 /404.html;
}
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
if_modified_since off;
expires off;
try_files $uri /index.html$is_args$args =404;
}
}
}