Modify ↓
Opened 5 years ago
Closed 5 years ago
#18588 closed defect (fixed)
Comply with OSM Tile Usage Policy
Reported by: | simon04 | Owned by: | team |
---|---|---|---|
Priority: | major | Milestone: | 20.01 |
Component: | Core imagery | Version: | |
Keywords: | Cc: |
Description
JOSM violates the OSM Tile Usage Policy https://operations.osmfoundation.org/policies/tiles/
DO NOT send no-cache headers. (
Cache-Control: no-cache
,Pragma: no-cache
etc.)
JOSM sends both headers
GET /11/1085/719.png HTTP/1.1 User-Agent: JOSM/1.5 (15736 SVN en_GB) Linux Arch Linux Java/11.0.6 Cache-Control: no-cache Accept: text/html, image/png, image/jpeg, image/gif, */* Accept-Encoding: gzip If-None-Match: "2ab5b55b0b85f4445b940246b7cac567" Pragma: no-cache Host: b.tile.openstreetmap.org Connection: keep-alive If-Modified-Since: Mon, 20 Jan 2020 19:51:08 GMT
The behaviour has been introduced in r9228. According to that commit message,
This avoids getting objects from Java Web Start Cache…
We have a few options:
- Drop the
no-cache
headers altogether - Keep
no-cache
only for Java Web Start (detect viaorg.openstreetmap.josm.actions.ShowStatusReportAction#isRunningJavaWebStart
) - Exclude
tile.openstreetmap.org
Attachments (0)
Note:
See TracTickets
for help on using tickets.
In 15740/josm: