]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #1730
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 27 May 2008 07:17:44 +0000 (07:17 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 27 May 2008 07:17:44 +0000 (07:17 +0000)
svn changeset:4638/svn branch:trunk

src/com/itmill/toolkit/Application.java

index d09500a6a2c15ee7c6c6ccff11b49c10b1d1fea3..37ef792c221418ae25baebca2939ecfe7912ec60 100644 (file)
@@ -662,7 +662,11 @@ public abstract class Application implements URIHandler, Terminal.ErrorListener
             final ApplicationResource resource = (ApplicationResource) keyResourceMap
                     .get(key);
             if (resource != null) {
-                return resource.getStream();
+                DownloadStream stream = resource.getStream();
+                if (stream != null) {
+                    stream.setCacheTime(resource.getCacheTime());
+                    return stream;
+                }
             }
 
             // Resource requests override uri handling