Я заметил, что многие сайты Microsoft имеют расширение * .MSPX. Я хорошо знаком с ASP.NET, но раньше не видел этого расширения.
Кто-нибудь знает, что это идентифицирует?





Я думаю, что это система шаблонов на основе XML, которая выводит HTML. Я думаю, это только для MS.
Ну, немного погуглив нашел это:
The presentation framework includes a custom Web handler built in ASP.NET. Pages that use the presentation framework have the .mspx filename extension, which is registered in Microsoft Internet Information Services (IIS) on the Web servers. When one of the Microsoft.com Web servers receives a request for an .mspx page, this custom Web handler intercepts that call and passes it to the framework for processing."
Я бы хотел узнать больше информации.
Несколько поисков в Интернете привели меня к http://www.microsoft.com/backstage/bkst_column_46.mspx, но это была мертвая ссылка. К счастью, он был заархивирован на Wayback Machine, и вы можете прочитать его здесь:
http://web.archive.org/web/20040803120105/http://www.microsoft.com/backstage/bkst_column_46.mspx
Расширение .MSPX является частью «Microsoft Network Project», который, согласно приведенной выше статье, разработан для обеспечения единообразия внешнего вида сайтов Microsoft во всем мире, а также для отделения дизайна сайта от контента. Вот суть статьи:
The presentation framework includes a custom Web handler built in ASP.NET. Pages that use the presentation framework have the .mspx filename extension, which is registered in Microsoft Internet Information Services (IIS) on the Web servers. When one of the Microsoft.com Web servers receives a request for an .mspx page, this custom Web handler intercepts that call and passes it to the framework for processing.
The framework first checks to see whether the result is cached. If it is, the page is rendered immediately. If the page is not cached, the handler looks up the URL for that page in the table of contents provided by the site owner (see below) to determine where the XML content for the page is stored. The framework then checks to see if the XML is cached, and either returns the cached content or retrieves the XML from the data store identified in the table of contents file.
Within the file that holds the content for the page, XML tags identify the content template to be used. The framework retrieves the appropriate template and uses a series of XSLTs to assemble the page, including the masthead, the footer, and the primary navigational column, finally rendering the content within the content pane.
Я люблю вас, ребята, я тоже много раз спрашивал себя, почему MS использует .mspx и что это вообще такое ?! :)
В тот раз я не мог быстро найти какую-либо информацию и предположил, что это будет что-то поверх asp.net или, может быть, даже не это, потому что вы также можете легко назначить ту же самую asp.net cgi dll для .mspx; )
Но, конечно же, это может быть что угодно ... а также сам "особый" CGI (полностью помимо ASP.NET), который обрабатывает этот запрос с гораздо лучшим / гораздо большим использованием кеша, более простым редактированием и т. д.
В конце истории я пришел к выводу, что, возможно, не важно знать, что именно такое .mspx :)