Keep asked-for texts clear of the credit band; answer review round 1

At 400 to 640 px the credit band, held to 12 px after scaling, covered the date, the circuit line, the session
label and the season's subtitle. The band is now laid out first and every bottom text, the photo inset and the
poster's dark band are lifted by as much as it would cover them, which at full size is nothing, so classic draws
as before; the bottom checker is drawn last again, over the track's end. A first render now draws from the layer
as kept, so it matches every later render of its key, and the ETag is weak all the same. A Commons file's SHA-1
is kept beside the layers and asked once, so photo pictures need no Commons request after a restart. The USGS
credit carries no prefix, and /licences names a layout switched to the map among OpenStreetMap's uses.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
This commit is contained in:
2026-11-27 15:34:38 +01:00
parent d32e57ec41
commit 1cefc6dd52
5 changed files with 126 additions and 50 deletions
+2 -1
View File
@@ -204,8 +204,9 @@ def cache_headers(kept: bool, versioned: bool, etag: str) -> dict[str, str]:
def etag_matches(if_none_match: str, etag: str) -> bool:
"""If-None-Match against our ETag by the weak comparison: W/ is ignored on both sides."""
tags = [tag.strip().removeprefix("W/") for tag in (if_none_match or "").split(",")]
return etag in tags or "*" in tags
return etag.removeprefix("W/") in tags or "*" in tags
# ------------------------------------------------------------------ the store's cap