Ticket #11193: OsmFileCacheTileLoader.java.patch
File OsmFileCacheTileLoader.java.patch, 1.1 KB (added by , 10 years ago) |
---|
-
src/org/openstreetmap/gui/jmapviewer/OsmFileCacheTileLoader.java
50 50 51 51 // Default expire time (i.e. maximum age of cached tile before refresh). 52 52 // Used when the server does not send an expires or max-age value in the http header. 53 protected static final long DEFAULT_EXPIRE_TIME = 1000 * 60 * 60 * 24 * 7; // 7 days53 protected static final long DEFAULT_EXPIRE_TIME = 1000L * 60 * 60 * 24 * 7; // 7 days 54 54 // Limit for the max-age value send by the server. 55 protected static final long EXPIRE_TIME_SERVER_LIMIT = 1000 * 60 * 60 * 24 * 28; // 4 weeks55 protected static final long EXPIRE_TIME_SERVER_LIMIT = 1000L * 60 * 60 * 24 * 28; // 4 weeks 56 56 // Absolute expire time limit. Cached tiles that are older will not be used, 57 57 // even if the refresh from the server fails. 58 58 protected static final long ABSOLUTE_EXPIRE_TIME_LIMIT = Long.MAX_VALUE; // unlimited