<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS7 - UI &amp; Remote Management</title><link>http://forums.iis.net/1111.aspx</link><description>Questions on the new Admin UI, Managing connections, IIS Administrators and developing UI extensions to configure and monitor your own module.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1910470.aspx</link><pubDate>Thu, 16 Jul 2009 01:13:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910470</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910470.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1910470</wfw:commentRss><description>&lt;p&gt;Yes, see &lt;a href="http://www.iis.net/ConfigReference/system.webServer/staticContent/clientCache"&gt;http://www.iis.net/ConfigReference/system.webServer/staticContent/clientCache&lt;/a&gt;&amp;nbsp;for examples.&lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1906691.aspx</link><pubDate>Fri, 12 Jun 2009 02:07:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906691</guid><dc:creator>pure.krome</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906691.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1906691</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Anilr, is it possible to set the cache control, for specific folders in a website, programatically in a web.config?&lt;/p&gt;&lt;p&gt;eg. I wish to add a max-age for&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;/images&lt;/li&gt;&lt;li&gt;/css&lt;/li&gt;&lt;li&gt;/javascript&lt;/li&gt;&lt;/ul&gt;can this be done in a web.config file?&lt;br /&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1887222.aspx</link><pubDate>Wed, 10 Dec 2008 22:49:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887222</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887222.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1887222</wfw:commentRss><description>&lt;p&gt;This setting only controls client caching of the static content - so anything you do at the server will not purge the cache - the cache has to be purged at the client.&lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1886952.aspx</link><pubDate>Mon, 08 Dec 2008 14:59:53 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1886952</guid><dc:creator>caslar4711</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1886952.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1886952</wfw:commentRss><description>&lt;p&gt;Well. Thanks for great information. I have a question though:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If I enabled static filecaching on a specific directory, i.e: &lt;/p&gt;
&lt;p&gt;&lt;em&gt;appcmd.exe set config &amp;quot;Default Web Site/images&amp;quot; -section:system.webServer/&lt;span class="searchword"&gt;static&lt;/span&gt;Content -client&lt;span class="searchword"&gt;Cache&lt;/span&gt;.&lt;span class="searchword"&gt;cache&lt;/span&gt;ControlMode:UseMaxAge&lt;/em&gt; &lt;/p&gt;
&lt;p&gt;Then, how am I able to remove it again ?&lt;br /&gt;&lt;br /&gt;The funny thing is, I have a .css file in a directory where I did the exact thing above, and max age is set to 84600, but even its the 8. december today, and I make sure my temporary Internet Files etc. is deleted, my browser still sees this .css file as being from the 28. november, even the file is build today. This really worries me, as I see no way to get around this, recycling application pools or not.&lt;/p&gt;
&lt;p&gt;Any help is really appreciated.&lt;/p&gt;
&lt;p&gt;Best, Lars&lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1881303.aspx</link><pubDate>Sun, 05 Oct 2008 22:36:43 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881303</guid><dc:creator>afjk</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881303.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1881303</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks! Hopefully this info will help reduce the load on my webserver .. its starting to get a bit overstressed! &lt;img src="http://webtrendsml2.com/stubby/img/2a79ea27c279e471f4d180b08d62b00a.gif" alt="" /&gt;&lt;br /&gt;&lt;br /&gt;AF&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1878339.aspx</link><pubDate>Wed, 03 Sep 2008 18:15:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878339</guid><dc:creator>andrewbi</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1878339.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1878339</wfw:commentRss><description>&lt;p&gt;Recycling the app pool will destroy any session variables for ASP.NET applications running in that particular app pool but will leave other apps running in other app pools alone.&lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1878073.aspx</link><pubDate>Sat, 30 Aug 2008 18:06:02 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878073</guid><dc:creator>theadmirableone</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1878073.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1878073</wfw:commentRss><description>&lt;p&gt;Well Anil.R you are correct!&amp;nbsp; :~)&amp;nbsp; Hats-off to you!&lt;/p&gt;
&lt;p&gt;After so many days of trying to get this to work without reseting IIS, your suggestion works.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The remaining question is:&amp;nbsp; If&amp;nbsp;I use your suggested&amp;nbsp;process/command after creating a distinct app pool for this particular web app, (so that the other app pools are not effected), does this command also destroy the session variables that&amp;nbsp;the IIS7 might be currently using,&amp;nbsp;in production, or does it simply clear the cache?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thanks a million, theadmirableone&lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1878023.aspx</link><pubDate>Fri, 29 Aug 2008 20:28:08 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878023</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1878023.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1878023</wfw:commentRss><description>&lt;p&gt;Disabling caching of ISAPIs has not been supported since IIS6.&lt;/p&gt;
&lt;p&gt;What you were ending up doing on IIS5.1 is to load and&amp;nbsp;unload all of asp.net and .net framework (and the asp.net worker process) after every request.&amp;nbsp; You can achieve the same effect by recycling the application pool when you want by running&lt;/p&gt;
&lt;p&gt;%windir%\system32\inetsrv\appcmd.exe recycle apppool &amp;quot;DefaultAppPool&amp;quot; (replace name of app-pool you want)&lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1877870.aspx</link><pubDate>Thu, 28 Aug 2008 15:08:54 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1877870</guid><dc:creator>theadmirableone</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1877870.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1877870</wfw:commentRss><description>&lt;p&gt;Anilr,&lt;/p&gt;
&lt;p&gt;Let me be clear about what I am trying to do.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s suppose that caching ISAPI is enabled for a particualt web app. on the IIS 5.1.&amp;nbsp; If I place a .dll in the GAC and then call it from&amp;nbsp;that web application in ASP.NET 2.0, then all is fine.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;However, if I go to rebuild that .dll from within ASP.NET 2.0 to return a different hard coded string, and then replace the original .dll&amp;nbsp;in the GAC, (effectively replacing the oringinal .dll with the same assembly version and build),&amp;nbsp; IIS does not see the different string when I call the .dll because it caches the .dll.&amp;nbsp; That is why I use:&amp;nbsp; &amp;quot;cscript.exe adsutil.vbs set w3svc/1/root/myWebApp/cacheisapi 0&amp;quot; (without quotes), to disable the ISAPI cache.&amp;nbsp; When this is done, and IIS is reset, IIS 5.1 does not cache the .dll in the GAC anymore.&amp;nbsp; This means that when no matter how &amp;quot;many&amp;quot; times I rebuild my .dll in ASP.NET 2.0 with different hard coded strings to return and place that new .dll in the GAC, (with the same assembly version and build), the new string will always show when that .dll is being called from any app.&amp;nbsp; This is becuase caching is turned off at the ISAPI level.&lt;/p&gt;
&lt;p&gt;I have tried this scenario dozens of times, and it certainly resolves the issue of replacing the same .dll in the GAC, (with the same assembly version and build), and still getting the new hard coded string, simply becuase the Cache ISAPI was turned off for that particular website.&lt;/p&gt;
&lt;p&gt;If I were to leave the cache ISAPI on, then IIS caches the .dll and will never retrieve the new string, even after I rebuild my ASP.NET 2.0 .dll and replace it in the GAC with same assembly and version.&lt;/p&gt;
&lt;p&gt;I could use a differenct assembly and build version, instead of turning off the ISAPI cache&amp;nbsp;to resolve it, however I would like to use the same (assembly and build version).&lt;/p&gt;
&lt;p&gt;So the question I pose to you is: how do I turn off ISAPI cache in IIS7, as &amp;quot;cscript.exe adsutil.vbs set w3svc/1/root/myWebApp/cacheisapi 0&amp;quot; (without quotes), does nothing for me in IIS 7?&lt;/p&gt;
&lt;p&gt;thanks ahead of time, theadmirableone&lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1877698.aspx</link><pubDate>Tue, 26 Aug 2008 21:27:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1877698</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1877698.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1877698</wfw:commentRss><description>&lt;p&gt;This thread was about caching of responses on the client - you are talking about dlls on the server in memory - also, ISAPI extensions in the GAC does not make any sense.&lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1877553.aspx</link><pubDate>Mon, 25 Aug 2008 04:20:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1877553</guid><dc:creator>theadmirableone</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1877553.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1877553</wfw:commentRss><description>&lt;p&gt;Hello Anilr,&lt;/p&gt;
&lt;p&gt;I am totally frustrated at this caching deal.&lt;/p&gt;
&lt;p&gt;I was originally using IIS 5.1 on Windows XP.&amp;nbsp; To turn the Cashe ISAPI applications&lt;/p&gt;
&lt;p&gt;check box off from the command line prompt, I would type in&lt;/p&gt;
&lt;p&gt;cscript.exe adsutil.vbs set w3svc/1/root/myWebApp/cacheisapi 0&lt;/p&gt;
&lt;p&gt;This would effectively turn off the IIS caching, and so when I replace the DLL file in the GAC, (Global Assembly Cache), the change would take effect right away.&amp;nbsp; This means the IIS 5.1 was not cashing the dll in memory.&amp;nbsp; This worked great!&amp;nbsp; So now I have the ability to replace&amp;nbsp;the DLL in the GAC and the IIS&amp;nbsp;server would serve the fresh content right away without having to reset IIS.&amp;nbsp; However this line does &amp;quot;not&amp;quot; work as far as I have tried in IIS 7.0.&lt;/p&gt;
&lt;p&gt;I tried your suggestion of&amp;nbsp;this as well from the command line prompt, for IIS 7.0:&lt;/p&gt;
&lt;p&gt;appcmd set config &amp;quot;Default Web Site/myWebApp&amp;quot; -section:system.webServer/caching -enabled:false&lt;/p&gt;
&lt;p&gt;and it returned:&lt;/p&gt;
&lt;p&gt;&amp;quot;Applied configuration changes to section.......&amp;quot;&lt;/p&gt;
&lt;p&gt;So it executes, but still does not prevent caching of the DLL.&amp;nbsp; I would like to mimik the same thing I had for IIS 5.1 (in win-xp)&amp;nbsp;for IIS 7.0 (in VISTA), but have spent endless hours wondering how to get it done.&amp;nbsp; If your suggestion works, I should be able to reoplace a DLL in the GAC with the same name, version&amp;nbsp;and build, and IIS should &amp;quot;not&amp;quot; cache it, therefore allowing the webpage that utilizes that DLL in the GAC to reflect any new changes instantly.&amp;nbsp; It works in win-xp, so why does it not work in vista?&lt;/p&gt;
&lt;p&gt;**Please help!.... Thanks in advance,&lt;/p&gt;
&lt;p&gt;theadmirableone&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1874230.aspx</link><pubDate>Wed, 16 Jul 2008 21:25:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1874230</guid><dc:creator>jimrPA</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1874230.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1874230</wfw:commentRss><description>&lt;p&gt;that&amp;#39;s it, thanks&lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1874207.aspx</link><pubDate>Wed, 16 Jul 2008 17:42:18 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1874207</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1874207.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1874207</wfw:commentRss><description>&lt;p&gt;Are you talking about server-side caching or client-side caching?&amp;nbsp; The posts above already talk about client-side caching, for server-side caching, you can do the following&lt;/p&gt;
&lt;p&gt;appcmd set config &amp;quot;My Site&amp;quot; -section:system.webServer/caching -enabled:false&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1873827.aspx</link><pubDate>Sat, 12 Jul 2008 16:23:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1873827</guid><dc:creator>jimrPA</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1873827.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1873827</wfw:commentRss><description>&lt;p&gt;Is there a way to disable static caching on a site level? Or set the caching period for the entire site and not each folder? &lt;/p&gt;</description></item><item><title>Re: How to set cache control for static content</title><link>http://forums.iis.net/thread/1864244.aspx</link><pubDate>Wed, 27 Feb 2008 19:40:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1864244</guid><dc:creator>Galcho</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1864244.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1111&amp;PostID=1864244</wfw:commentRss><description>&lt;p&gt;here is a further research on the subject: &lt;a class="TitleLinkStyle" href="http://www.galcho.com/Blog/PermaLink.aspx?guid=490f3c31-1815-40fc-a871-5d6899fa35e0" rel="bookmark"&gt;IIS7: How to set cache control for static content?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;</description></item></channel></rss>