What does the X-SourceFiles header do?

后端 未结 1 1161
北海茫月
北海茫月 2021-02-01 11:32

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

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

Anyone knows wha

相关标签:
1条回答
  • 2021-02-01 12:07

    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.

    0 讨论(0)
提交回复
热议问题