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