Changeset 13119 in josm
- Timestamp:
- 2017-11-12T21:14:52+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r12709 r13119 56 56 import org.openstreetmap.josm.gui.layer.NativeScaleLayer.ScaleList; 57 57 import org.openstreetmap.josm.io.CachedFile; 58 import org.openstreetmap.josm.spi.preferences.Config; 58 59 import org.openstreetmap.josm.tools.CheckParameterUtil; 59 60 import org.openstreetmap.josm.tools.GBC; … … 358 359 private Collection<Layer> getCapabilities() throws IOException { 359 360 try (CachedFile cf = new CachedFile(baseUrl); InputStream in = cf.setHttpHeaders(headers). 360 setMaxAge( 7 * CachedFile.DAYS).361 setMaxAge(Config.getPref().getLong("wmts.capabilities.cache.max_age", 7 * CachedFile.DAYS)). 361 362 setCachingStrategy(CachedFile.CachingStrategy.IfModifiedSince). 362 363 getInputStream()) {
Note:
See TracChangeset
for help on using the changeset viewer.