in precompiled asp.net website - Does it matter?

前端 未结 3 1858
灰色年华
灰色年华 2021-02-05 14:03

I\'m deploying a precompiled and all-page-merged website using Web Deployment Projects on Visual Studio 2008. Note that all assemblies and projects have been compiled in Release

3条回答
  •  不要未来只要你来
    2021-02-05 15:06

    From the blog post ASP.Net – Never again fear publishing your website with debug=true:

    • The compilation of ASP.NET pages takes longer (as batch compilation is turned off)
    • Code typically executes slower
    • Memory footprint is increased
    • Scripts and images downloaded from the WebResources.axd handler are not cached
    • Requests do not time out (this is bad, as in a production environment we dont want requests to be stuck indefinitely)

    The article goes on to recommend setting the production server machine.config to ensure retail deployment mode is forced which essentially means debug is always false.

提交回复
热议问题