mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 15:46:11 +02:00
🐛 Fix 404 errors
This commit is contained in:
parent
49df4a9404
commit
bfc490bd63
5 changed files with 55 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,6 +131,15 @@ http {
|
|||
|
||||
location / {
|
||||
add_header Cache-Control "no-cache, max-age=0";
|
||||
|
||||
location ~ ^/(/|css|fonts|images|js|wasm) {
|
||||
}
|
||||
|
||||
location ~ ^/[^/]+/(.*)$ {
|
||||
return 301 /404.html;
|
||||
}
|
||||
|
||||
try_files $uri /index.html$is_args$args =404;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -168,7 +168,16 @@ http {
|
|||
location ~* \.(html).*$ {
|
||||
add_header Cache-Control "no-cache, max-age=0" always;
|
||||
}
|
||||
|
||||
location ~ ^/(/|css|fonts|images|js|wasm) {
|
||||
}
|
||||
|
||||
location ~ ^/[^/]+/(.*)$ {
|
||||
return 301 /404.html;
|
||||
}
|
||||
|
||||
root /var/www/app/;
|
||||
try_files $uri /index.html$is_args$args =404;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue