Ticket #10673: cache_wms.patch

File cache_wms.patch, 626 bytes (added by wiktorn, 9 years ago)

Patch to cache WMS tiles

  • src/org/openstreetmap/josm/io/imagery/WMSGrabber.java

     
    258258        Main.info("Grabbing WMS " + (attempt > 1? "(attempt " + attempt + ") ":"") + url);
    259259
    260260        HttpURLConnection conn = Utils.openHttpConnection(url);
     261        conn.setUseCaches(true);
    261262        for (Entry<String, String> e : props.entrySet()) {
    262263            conn.setRequestProperty(e.getKey(), e.getValue());
    263264        }