gpt4 book ai didi

asp.net-mvc-3 - ASP.NET MVC 3 : Purpose of IgnoreRoute ("{resource}.axd/{*pathInfo}"); ? 已弃用?

转载 作者:行者123 更新时间:2023-12-01 12:55:18 26 4
gpt4 key购买 nike

我还需要这条规则吗?
我没有看到任何对 resource.axd 文件的请求(与我运行 webform 应用程序时相反)

最佳答案

WebResource.axd is an HTTP Handler that is part of the .NET Framework that does one thing and one thing only – it is tasked with getting an embedded resource out of a DLL and returning its content. What DLL to go to and what embedded resource to take are specified through the querystring. For instance, a request to www.yoursite.com/WebResource.axd?d=EqSMS…&t=63421… might return a particular snippet of JavaScript embedded in a particular assembly.

它仍然是框架的一部分,您仍然可以使用上述处理程序检索嵌入式资源。您不希望您的路由处理程序处理此类请求,这就是它被忽略的原因。我的猜测是,如果您完全确定您使用的应用程序/库不使用它,您就可以摆脱它。

关于asp.net-mvc-3 - ASP.NET MVC 3 : Purpose of IgnoreRoute ("{resource}.axd/{*pathInfo}"); ? 已弃用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10047008/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com