Around 90% of the pages for our websites have no .Net code embedded in them yet are published as .aspx files. I want these to render as fast as possible so I’m removing as much as I can.
Does the .Net page directive have an impact on performance? I am thinking about two factors; the page speed for each GET and what happens when the file changes. The CMS system re-creates each page daily and I’m wondering if this triggers the ASP.Net compilation process.
The
<%@ Page %>directive is not required. Without it, the default values forLanguageand other stuff will be assumed.By changing a
.aspxfile, it’ll be recompiled (it doesn’t recompile the whole app though):