Skip to content

Commit ea4dd0e

Browse files
committed
docs: Add documentation for fallback favicon
Signed-off-by: Thorsten Hans <[email protected]>
1 parent 2ef6fa1 commit ea4dd0e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ files = [{ source = "test", destination = "/" }]
7373
environment = { CUSTOM_404_PATH = "404.html" }
7474
```
7575

76+
### Fallback favicon
77+
78+
If you haven't specified a favicon in your HTML document, `spin-fileserver` will serve the [Spin logo](./spin-favicon.png) as the fallback favicon. The `spin-fileserver` also serves the fallback favicon if the file (called `favicon.ico` or `favicon.png`) specified in your `<link rel="shortcut icon" ...>` element does not exist.
79+
80+
Remember that there are situations where `spin-fileserver` cannot serve the fallback favicon if no `<link rel="shortcut icon" ...>` element is specified. Browsers try to find the favicon in the root directory of the origin (`somedomain.com/favicon.ico`). If the application doesn't listen for requests targeting that route, it can't intercept requests to non-existing favicons.
81+
7682
### Building from source and using
7783

7884
Prerequisites:

0 commit comments

Comments
 (0)