This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/causeway.git


The following commit(s) were added to refs/heads/main by this push:
     new 1fc1e2fb81d CAUSEWAY-3945: disables client-side caching for tabular 
downloads
1fc1e2fb81d is described below

commit 1fc1e2fb81d2bff0588a35504ac941353f02d1bf
Author: andi-huber <[email protected]>
AuthorDate: Tue Nov 18 14:15:23 2025 +0100

    CAUSEWAY-3945: disables client-side caching for tabular downloads
---
 .../ui/src/main/java/org/apache/causeway/viewer/wicket/ui/util/Wkt.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/util/Wkt.java
 
b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/util/Wkt.java
index 4fd1a8c7ea4..d53716e374a 100644
--- 
a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/util/Wkt.java
+++ 
b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/util/Wkt.java
@@ -23,6 +23,7 @@
 import java.awt.image.BufferedImage;
 import java.io.File;
 import java.io.Serializable;
+import java.time.Duration;
 import java.util.List;
 import java.util.Optional;
 import java.util.OptionalInt;
@@ -678,6 +679,7 @@ public void fileDownloadClickHandler(final IModel<File> 
model, final CommonMimeT
         }
         RequestCycle.get().scheduleRequestHandlerAfterCurrent(
                 Wkt.fileResourceStreamRequestHandler(file, mime)
+                .setCacheDuration(Duration.ZERO)
                 .setFileName(fileName)
                 .setContentDisposition(ContentDisposition.ATTACHMENT));
     }

Reply via email to