Index: /applications/editors/josm/plugins/imagerycache/build.xml
===================================================================
--- /applications/editors/josm/plugins/imagerycache/build.xml	(revision 31467)
+++ /applications/editors/josm/plugins/imagerycache/build.xml	(revision 31468)
@@ -5,5 +5,5 @@
     <property name="commit.message" value="[JOSM_ImageryCache]: correct database cleaning, at last"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="8526"/>
+    <property name="plugin.main.version" value="8648"/>
 
     <!-- Configure these properties (replace "..." accordingly).
Index: /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/ImageryCachePlugin.java
===================================================================
--- /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/ImageryCachePlugin.java	(revision 31467)
+++ /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/ImageryCachePlugin.java	(revision 31468)
@@ -20,5 +20,5 @@
     TileLoaderFactory factory = new TileLoaderFactory() {
         @Override
-        public OsmTileLoader makeTileLoader(TileLoaderListener listener) {
+        public OsmTileLoader makeTileLoader(TileLoaderListener listener, Map<String, String> headers) {
             String cachePath = CachedTileLoaderFactory.PROP_TILECACHE_DIR.get();
             try {
@@ -29,5 +29,5 @@
             
             if (cachePath != null && !cachePath.isEmpty()) {
-                return new OsmDBTilesLoader(listener, new File(cachePath));
+                return new OsmDBTilesLoader(listener, new File(cachePath), headers);
             }
             return null;
@@ -35,7 +35,6 @@
 
         @Override
-        public TileLoader makeTileLoader(TileLoaderListener listener,
-                Map<String, String> headers) {
-            return makeTileLoader(listener);
+        public TileLoader makeTileLoader(TileLoaderListener listener) {
+            return makeTileLoader(listener, null);
         }
     };
Index: /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/OsmDBTilesLoader.java
===================================================================
--- /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/OsmDBTilesLoader.java	(revision 31467)
+++ /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/OsmDBTilesLoader.java	(revision 31468)
@@ -40,6 +40,6 @@
     protected long recheckAfter = FILE_AGE_ONE_DAY;
 
-    public OsmDBTilesLoader(TileLoaderListener smap, File cacheFolder) {
-        super(smap);
+    public OsmDBTilesLoader(TileLoaderListener smap, File cacheFolder, Map<String, String> headers) {
+        super(smap, headers);
         dao = TileDAOMapDB.getInstance();
         dao.setCacheFolder(cacheFolder);
