From 8237aabd8783d0be4eb471dcbabf2ae073b64051 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 27 Nov 2026 10:31:48 +0100 Subject: [PATCH] Say in the README what the service keeps in its cache and for how long Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index c48d3cc..f82a18c 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,14 @@ The service writes one line per request: the visitor's address (from the proxy's its status, size and duration, the referrer and the user agent. Race schedules come from Jolpica, paced under its rate limit and kept in `cache/jolpica/`; a throttled or failed fetch is said in the log and never kept. +## Caching + +Everything the service fetches or renders is kept in `cache/` (the module's cache volume): race schedules from +Jolpica in `cache/jolpica/` (a season that is over for good, the running one for six hours), map tiles in +`cache/tiles/` (30 days), and every poster and thumbnail in `cache/posters/` once it rendered whole. A poster is +sent with an `ETag` and a day's `Cache-Control`; one whose map or photo failed is not kept, and is sent with five +minutes', so it is rendered again once its source answers. + ## Checks `merge-check.sh` runs before a change merges: every Python file the service ships must parse, and the tests in