Give the addresses an address version of their own, raised to a1
Every season poster changed with the joined picks, but the Kometa file kept handing out
?v=r3, an address clients keep for good: they would never load the new season posters. Raising
the render version instead would draw every kept layer and finished picture again, though only
the season posters changed.
poster_options.ADDRESS_VERSION ("a1") sits beside RENDER_VERSION: the Kometa file writes it into
every poster address, and only an address carrying it is sent the immutable Cache-Control; an
address with ?v=r3 is now any other address (a day, then its ETag). Layers and finished pictures
stay keyed by RENDER_VERSION, still r3, so nothing kept is drawn again except the season posters
whose photo changed. The API's option text, the Kometa docstring and the README say "address
version".
The options test: ?v=a1 is kept for good, ?v=r3 no longer (on master it fails: no
ADDRESS_VERSION, and ?v=r3 is still the immutable address).
Builds: docs/posters.md at f6b9f937d0 (Finished images: what clients keep, the address version)
Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
This commit is contained in:
@@ -159,7 +159,7 @@ layers, at most 2 GB, the least recently used going first; a second season of a
|
||||
and fetches nothing. A picture whose map or photo did not arrive is served without it, kept nowhere, and sent with
|
||||
five minutes' `Cache-Control` and no `ETag`.
|
||||
|
||||
Clients keep an address that carries the render version (`?v=r3`, as the Kometa file writes it) for good
|
||||
Clients keep an address that carries the address version (`?v=a1`, as the Kometa file writes it) for good
|
||||
(`immutable`); any other address a day, then ask again with its `ETag` and get a 304 while it is unchanged. Every
|
||||
request the service makes carries the User-Agent `f1-circuits/<version> (+<its public address>)`. OpenStreetMap tiles
|
||||
are fetched only when a picture asks for them, at most two at once; Wikimedia Commons is asked one request at a time.
|
||||
|
||||
Reference in New Issue
Block a user