diff --git src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
index 7cc1a98e42..260fb01269 100644
--- src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
+++ src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
@@ -366,9 +366,7 @@ public abstract class JCSCachedTileLoaderJob<K, V extends CacheEntry> implements
                 // If isModifiedSince or If-None-Match has been set
                 // and the server answers with a HTTP 304 = "Not Modified"
                 Logging.debug("JCS - If-Modified-Since/ETag test: local version is up to date: {0}", getUrl());
-                // update cache attributes
-                attributes = parseHeaders(urlConn);
-                cache.put(getCacheKey(), cacheData, attributes);
+                updateAttributes(urlConn);
                 return true;
             } else if (isObjectLoadable() // we have an object in cache, but we haven't received 304 response code
                     && (
@@ -558,13 +556,26 @@ public abstract class JCSCachedTileLoaderJob<K, V extends CacheEntry> implements
         boolean ret = (attributes.getEtag() != null && attributes.getEtag().equals(urlConn.getHeaderField("ETag"))) ||
                 (lastModified != 0 && lastModified <= attributes.getLastModification());
         if (ret) {
-            // update attributes
-            attributes = parseHeaders(urlConn);
-            cache.put(getCacheKey(), cacheData, attributes);
+            updateAttributes(urlConn);
         }
         return ret;
     }
 
+    /**
+     * Updates the cache attributes after the server confirmed that the cached object is still valid.
+     * <p>
+     * The "no tile at this zoom level" marker is kept: it was found from the response which delivered the object,
+     * and a confirmation does not repeat that. Without it, an empty no-tile entry would look like a loaded tile
+     * without an image (see #24893).
+     * @param urlConn the response which confirmed the cached object
+     */
+    private void updateAttributes(HttpClient.Response urlConn) {
+        final boolean noTileAtZoom = attributes.isNoTileAtZoom();
+        attributes = parseHeaders(urlConn);
+        attributes.setNoTileAtZoom(noTileAtZoom);
+        cache.put(getCacheKey(), cacheData, attributes);
+    }
+
     /**
      * TODO: move to JobFactory
      * cancels all outstanding tasks in the queue.
diff --git test/unit/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJobTest.java test/unit/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJobTest.java
index 791ae6d36a..ff31eca64e 100644
--- test/unit/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJobTest.java
+++ test/unit/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJobTest.java
@@ -3,6 +3,7 @@ package org.openstreetmap.josm.data.imagery;
 
 import static org.junit.jupiter.api.Assertions.assertArrayEquals;
 import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
 import java.io.IOException;
@@ -202,6 +203,11 @@ class TMSCachedTileLoaderJobTest {
         Listener listener = new Listener();
         TestCachedTileLoaderJob job = new TestCachedTileLoaderJob(listener, tile, key, minimumExpiry);
         job.submit(force);
+        waitFor(listener);
+        return job;
+    }
+
+    private static void waitFor(Listener listener) {
         synchronized (listener) {
             while (!listener.ready) {
                 try {
@@ -212,7 +218,6 @@ class TMSCachedTileLoaderJobTest {
                 }
             }
         }
-        return job;
     }
 
     /**
@@ -332,4 +337,39 @@ class TMSCachedTileLoaderJobTest {
         wireMockRuntimeInfo.getWireMock().verifyThat(1, WireMock.getRequestedFor(WireMock.urlEqualTo("/test")));
         assertArrayEquals("mock entry".getBytes(StandardCharsets.UTF_8), job.get().getContent());
     }
+
+    /**
+     * A cached "no tile at this zoom level" entry which the server confirms with a 304 stays a no-tile.
+     * <p>
+     * Non-regression test for #24893: the 304 replaced the cache attributes and dropped the marker, so the empty
+     * entry finished as a loaded tile without an image, which kept showing the hourglass a tile starts with.
+     * @throws IOException exception
+     */
+    @Test
+    void testNoTileAtZoomKeptOn304() throws IOException {
+        final String eTag = "\"no-tile\"";
+        long testStart = System.currentTimeMillis();
+        wireMockRuntimeInfo.getWireMock().register(
+                WireMock.get(WireMock.urlEqualTo("/no-tile"))
+                .willReturn(WireMock.status(304).withHeader("ETag", eTag))
+                );
+        MockTile tile = new MockTile(wireMockRuntimeInfo.getHttpBaseUrl() + "/no-tile");
+        Listener listener = new Listener();
+        TestCachedTileLoaderJob job = new TestCachedTileLoaderJob(listener, tile, "no-tile");
+        // the entry as cached for a no-tile response, expired since
+        CacheEntryAttributes attributes = new CacheEntryAttributes();
+        attributes.setNoTileAtZoom(true);
+        attributes.setEtag(eTag);
+        attributes.setLastModification(testStart - TimeUnit.DAYS.toMillis(2));
+        attributes.setExpirationTime(testStart - TimeUnit.DAYS.toMillis(1));
+        getCache().put(job.getCacheKey(), new BufferedImageCacheEntry(new byte[0]), attributes);
+
+        job.submit(false);
+        waitFor(listener);
+
+        wireMockRuntimeInfo.getWireMock().verifyThat(1, WireMock.getRequestedFor(WireMock.urlEqualTo("/no-tile")));
+        assertTrue(job.getAttributes().isNoTileAtZoom(), "the no-tile marker was dropped");
+        assertEquals("no-tile", tile.getValue("tile-info"));
+        assertNotSame(Tile.LOADING_IMAGE, tile.getImage(), "the tile still shows the hourglass");
+    }
 }
