]> source.dussan.org Git - vaadin-framework.git/commitdiff
LoginForm: setting cache time explicitly for stream
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 27 May 2008 06:56:20 +0000 (06:56 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 27 May 2008 06:56:20 +0000 (06:56 +0000)
svn changeset:4636/svn branch:trunk

src/com/itmill/toolkit/ui/LoginForm.java

index e0f30774e480d254ae6ac47dc4be4d40bc42ca44..2e1f85b7697aa1af8e6faf2eb079d537579f3e7f 100644 (file)
@@ -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() {