Ignore:
Timestamp:
2020-05-16T21:57:03+02:00 (6 years ago)
Author:
simon04
Message:

fix #18162, see #18712 - Add --offline=CACHE_UPDATES to disable updates of CachedFiles

This includes imagery index, custom styles, presets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CachedFile.java

    r16428 r16430  
    449449                if (offline || age < maxAgeMillis) {
    450450                    return localFile;
     451                } else if (NetworkManager.isOffline(OnlineResource.CACHE_UPDATES)) {
     452                    Logging.warn(OfflineAccessException.forResource(tr("Cache update for {0}", urlStr)).getMessage());
     453                    return localFile;
    451454                }
    452455                if (cachingStrategy == CachingStrategy.IfModifiedSince) {
Note: See TracChangeset for help on using the changeset viewer.