什么是在X-来源档案的头吗? [英] What does the X-SourceFiles header do?

查看:143
本文介绍了什么是在X-来源档案的头吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ASP.NET MVC 3使用FileStreamResult,我得到一个响应头像

Using a FileStreamResult in ASP.NET MVC 3, I get a response header like

X-SourceFiles =?UTF-8?B?RDpcUHJvamVjdFxqYWNvYlx0ZXN0?=

任何人都知道这是什么意思头,什么是它的目的是什么?

Anyone knows what this header means, and what's its purpose?

推荐答案

头是由IIS / IIS防爆preSS调试某些模块的理解。它包含的base64恩codeD路径到磁盘上的源文件,用于页面的生成的输出回链接到源文件。它仅适用于本地主机的请求产生的,所以当你将应用程序部署到实际的服务器,你不必担心它显示给世界。

The header is understood by certain debugging modules in IIS / IIS Express. It contains the base64-encoded path to the source file on disk and is used to link a page's generated output back to that source file. It's only generated for localhost requests, so you don't need to worry about it being displayed to the world when you deploy the application to an actual server.

这篇关于什么是在X-来源档案的头吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆