From f6f3f751fe6871b48e417e201798f2318ccf915d Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Tue, 27 May 2008 06:56:20 +0000 Subject: [PATCH] LoginForm: setting cache time explicitly for stream svn changeset:4636/svn branch:trunk --- src/com/itmill/toolkit/ui/LoginForm.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/com/itmill/toolkit/ui/LoginForm.java b/src/com/itmill/toolkit/ui/LoginForm.java index e0f30774e4..2e1f85b769 100644 --- a/src/com/itmill/toolkit/ui/LoginForm.java +++ b/src/com/itmill/toolkit/ui/LoginForm.java @@ -45,7 +45,7 @@ public class LoginForm extends CustomComponent { } public long getCacheTime() { - return 0; + return -1; } public String getFilename() { @@ -53,8 +53,11 @@ public class LoginForm extends CustomComponent { } public DownloadStream getStream() { - return new DownloadStream(new ByteArrayInputStream(getLoginHTML()), - getMIMEType(), getFilename()); + DownloadStream downloadStream = new DownloadStream( + new ByteArrayInputStream(getLoginHTML()), getMIMEType(), + getFilename()); + downloadStream.setCacheTime(getCacheTime()); + return downloadStream; } public String getMIMEType() { -- 2.39.5