visual studio - VS2008 Website Application Project, Long Wait to see page after build -


just started new web site application project, , find takes long open webpage straight build it. brand new project has minimum number of files, there other files in folder not part of project not included in project.

anyway press build, build complete, try open webpage i.e. http://unitedcms/default.aspx.

need wait 1 min before loads, after initial load loads instantly ofcourse im wondering why initial load takes long ?

the reason iis/cassini compiles project after every build. compilation takes time complete. once compiled, iis/cassini stores them in cache. on subsequent requests, iis/cassini not recompile code serve cache.

that's reason first request slow.

here example. using notepad, edit web.config file (just add empty line or space). save it. , try open site again. take time load. that's because iis checks web.config file's last modified time stamp , if it's newer 1 in cache, re-compile code.

hope helps.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -