Index: /trunk/src/org/openstreetmap/josm/io/CachedFile.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/io/CachedFile.java	(revision 11194)
+++ /trunk/src/org/openstreetmap/josm/io/CachedFile.java	(revision 11195)
@@ -532,4 +532,13 @@
      */
     public void clear() throws IOException {
+        URL url;
+        try {
+            url = new URL(name);
+            if ("file".equals(url.getProtocol())) {
+                return; // this is local file - do not delete it
+            }
+        } catch (MalformedURLException e) {
+            return; // if it's not a URL, then it still might be a local file - better not to delete
+        }
         File f = getFile();
         if (f != null && f.exists()) {
