From: Matti Tahvonen Date: Tue, 27 May 2008 06:56:20 +0000 (+0000) Subject: LoginForm: setting cache time explicitly for stream X-Git-Tag: 6.7.0.beta1~4698 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f6f3f751fe6871b48e417e201798f2318ccf915d;p=vaadin-framework.git LoginForm: setting cache time explicitly for stream svn changeset:4636/svn branch:trunk --- 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() {