iis express - How do I stop IIS from caching any files, ever, under any circumstances? -
i web development work , biggest hit productivity comes iis. caches files not update when changed, unless restart iis. specifically, referring html, js, , css files. problem forces me stop , start web application constantly. since have windows 7 believe have iss 7.5. using iis express. frustrating i'd prefer iis never cache anything, ever. fine solution stops forms of caching or project working on.
iis manager not available me. not located in system , security -> administrative tools -> iis manager suggested https://technet.microsoft.com/en-us/library/cc770472%28v=ws.10%29.aspx. also, searching inetmgr in start search box gets me no results. because of this, looking fix iis applicationhost.config file.
i have tried putting following in applicationhost.config doesn't work:
<location path="projectname"> <system.webserver> <staticcontent> <clientcache cachecontrolcustom="public" cachecontrolmode="disablecache" /> </staticcontent> <caching enabled="false" enablekernelcache="false"></caching> </system.webserver> </location>
the closest question on stackoverflow problem iis cached files never replaced. however, fiddler shows me old files being sent browser after have been changed.
how can iis send browser updated files without having restart it?
i suspect have enabled output caching, exhibit behaviour describing recycling app pool or restarting iis clears them , allows see new content.
this page gives more information, http://www.iis.net/learn/manage/managing-performance-settings/walkthrough-iis-output-caching
if using iis express caching set @ application level in web.config, or on individual pages.
you need set
<caching> <outputcache enableoutputcache="false" /> </caching>
or if iis 7+ (which iis express be)
<system.webserver> <caching enabled="false" /> </system.webserver>
Comments
Post a Comment