ContributingWeb client
What ferryd answers
ferryd serves the files of the dashboard with cache rules. Each path of the app gets index.html.
A file under /assets/ never changes. The browser can keep it for one year.
1 / 4
The rules
ferryd serves the app at /.
| Request | Answer |
|---|---|
A file under /assets/ | The file, with Cache-Control: public, max-age=31536000, immutable |
Each other file, index.html first | The file, with no-cache and an ETag |
Another GET outside /api, /hooks and /healthz that is not a file | index.html. Thus a history URL such as /services/api/logs works after a reload. |
A file under /assets/ that does not exist | 404 |
Cache-Control tells the browser how long it can keep a file. max-age=31536000 is one year, in seconds.