Compilation debug mode “true” in
web.config should be avoided when deploying an ASP.NET application on Production
environment.
When <compilation debug=”false”/> is set, the WebResource.axd handler will automatically set a long cache policy on resources retrieved via it – so that the resource is only downloaded once to the client and cached there forever!
Disadvantages of keeping it
"true" on production environment.
- The compilation of ASP.NET pages takes longer.
- Code can execute slower.
- Much more memory is used within the application at runtime.
- Scripts and images downloaded from the WebResources.axd handler are not cached.
When <compilation debug=”false”/> is set, the WebResource.axd handler will automatically set a long cache policy on resources retrieved via it – so that the resource is only downloaded once to the client and cached there forever!
No comments:
Post a Comment