What does the X-SourceFiles header do?

asp.net Mvc

asp.net Mvc Problem Overview


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?

asp.net Mvc Solutions


Solution 1 - asp.net Mvc

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJacobEView Question on Stackoverflow
Solution 1 - asp.net MvcLeviView Answer on Stackoverflow