(25)Use the startMode attribute to reduce the load time for your ASP.NET site缓存
招数25:ci
使用startMode属性来减小ASP.NET站点加载时间it
Every time you update your site, IIS must recompile it during the first request, so the initial request takes significantly longer than subsequent ones. An easy solution is to tell IIS to automatically recompile your site as part of the update process. This can be done using the startMode attribute in the ApplicationHost.config file. You can even specify a custom action to run on start-up, such as pre-populating a data cache.
每次更新你的站点,IIS必须在第一次请求从新编译,因此初始请求的时间大大超事后续请求的时间。一个简单的解决方案是在更新的过程当中告诉IIS自动从新编译你的站点。这能够经过在ApplicationHost.config文件中使用startMode属性实现。你甚至能够指定一个自定义动做在启动时运行,例如预填充一个数据缓存。io