![](/img/trans.png)
[英]js warning: Resource interpreted as Script but transferred with MIME type text/plain
[英]Files of text/plain type is transferred much faster than other mime types
我有一個HTTP文件傳輸java應用程序。
我觀察到較大尺寸的文本文件(普通/文本mime類型)傳輸速度比其他較小尺寸的二進制文件快得多。
在我的客戶端,我使用Java腳本XMLHttpRequest下載文件。
我首先使用響應類型“blob”將文件保存在blob(瀏覽器內存)中,然后使用href將其保存到文件系統中。
為什么會發生這種情況有什么具體原因。 是因為blob節省了嗎?
這可能是因為壓縮(請參閱transfer-encoding / content-encoding“gzip”)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.