我提供了一個文件從我的網站下載,這是工作。不過,我注意到了Chrome的這種行爲。鉻說:「資源解釋爲文檔,但與MIME類型的應用程序/ vnd.openxmlformats-officedocument.wordprocessingml.document傳輸」
我想我有正確的MIME類型設置,但Chrome顯示此消息,並以紅色標記請求。
我已經設置了MIME類型:
application/vnd.openxmlformats-officedocument.wordprocessingml.document
這是對*.docx
文件預期的行爲?我似乎可能做錯了什麼。
這是一個動態下載還是靜態的?根據[this](http://stackoverflow.com/questions/6587393/resource-interpreted-as-document-but-transferred-with-mime-type-application-zip),你可以添加「下載」屬性到標籤。我看到與application/pdf相同的內容,但(a)PDF呈現/下載正常,(b)它是動態生成的,所以我沒有標記。 – 2014-12-01 00:08:45
這是一個動態下載。 – 2014-12-02 23:28:27