Add mime type to HTML link

后端 未结 4 448
梦如初夏
梦如初夏 2020-12-15 15:45

I know how to change the MIME type in a webserver. I used this to make sure the browser downloads my .scrpt file instead of opening the plain text version. So far so good bu

4条回答
  •  甜味超标
    2020-12-15 16:36

    HTML is not concerned about the HTTP response headers. This is absolutely a server-side problem, which has to be solved in the HTTP repsonse headers before the HTTP reponse body(/content?) is sent. Without a scripting language like Ruby or PHP there is nothing you can do.

提交回复
热议问题