fix favicon 404s: add <link rel=icon> to all pages, nginx 204 for /favicon.ico

This commit is contained in:
Pontoporeia
2026-03-02 15:43:29 +01:00
parent e4b2205eac
commit 1fb9644d5a
9 changed files with 15 additions and 0 deletions

View File

@@ -183,6 +183,13 @@ server {
add_header Content-Disposition "inline";
}
# Silence favicon.ico 404s — browsers that ignore <link rel="icon"> still request this
location = /favicon.ico {
return 204;
access_log off;
log_not_found off;
}
# Root location - try files or 404
location / {
try_files $uri $uri/ =404;