]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix text / javascript mismatch issue in Chrome (#11275)
authorArtur Signell <artur@vaadin.com>
Thu, 23 May 2013 19:27:16 +0000 (22:27 +0300)
committerArtur Signell <artur@vaadin.com>
Thu, 23 May 2013 19:29:58 +0000 (22:29 +0300)
Change-Id: I7516be18401640ded3eb6174b5375bb452a2ba00

client/src/com/vaadin/client/ResourceLoader.java

index 7fc8b4f9f3610d1292acd8cd4c5c16ef2c5481bb..3d8eb739b1efbc7d59e412b30bf5aeb11ed9d473 100644 (file)
@@ -323,7 +323,11 @@ public class ResourceLoader {
         } else {
             ObjectElement element = Document.get().createObjectElement();
             element.setData(url);
-            element.setType("text/plain");
+            if (BrowserInfo.get().isChrome()) {
+                element.setType("text/cache");
+            } else {
+                element.setType("text/plain");
+            }
             element.setHeight("0px");
             element.setWidth("0px");
             return element;