This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to change JOSM imagery.generic.minimum_expires but just for one imagery?

0

I can set this JOSM Advanced Preference,

tag key="imagery.generic.minimum_expires" value="3600000000"

But I don't want to do it for all imagery. I only want to do it for the ABC imagery from the XYZ server. How to?

You see there is this horrible server that is wastefully responding

 HTTP/1.1 200 OK
 Cache-Control: no-cache
 Pragma: no-cache
 Expires: -1

while everybody knows the cadastral maps it serves won't change for years and years, so I don't want JOSM to bother to attempt to refresh them every hour whenever I browse them.

asked 19 Feb '18, 07:33

jidanni's gravatar image

jidanni
339323647
accept rate: 0%


One Answer:

1

There doesn't seem to be an imagery configuration parameter for this (see https://josm.openstreetmap.de/wiki/Maps#Documentation ) so the answer is simply: you can't.

answered 19 Feb '18, 12:57

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

(22 Feb '18, 12:19) jidanni

Source code available on GitHub .