<?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>Search results matching tag 'caching'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=caching&amp;orTags=0</link><description>Search results matching tag 'caching'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>IIS7 UNC File caching issue</title><link>http://forums.iis.net/p/1162559/1924350.aspx#1924350</link><pubDate>Wed, 11 Nov 2009 21:03:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924350</guid><dc:creator>SQLRocks</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve got a website on an IIS7 server which has as virtual directory (PHOTOS) that points to a UNC shared on a File Server. The UNC is used because the file server has 15TB of images that are not practical to store locally on the IIS Server.&lt;/p&gt;
&lt;p&gt;I should note that serving files from the UNC share works fine as a general rule for me.&lt;/p&gt;
&lt;p&gt;The IIS server has DoDirMonitoringForUNC set to 0 (therefore&amp;nbsp;Last Modified Mechanism is used). And the default FileAttributeCheckThreshold is used (5 seconds).&lt;/p&gt;
&lt;p&gt;The site allows a &amp;quot;user&amp;quot; to rotate an image, which actually changes a .jpg file on the UNC share.&lt;/p&gt;
&lt;p&gt;When the &amp;quot;user&amp;quot; refreshes their page they may get the &amp;quot;old&amp;quot; image even though there is no Output caching enabled. I fiddled with FileAttributeCheckThreshold and indeed If I make it 1 then I don&amp;#39;t see &amp;quot;old&amp;quot; images; if I make it 30 I will see &amp;quot;old&amp;quot; images for up to 30 seconds.&lt;/p&gt;
&lt;p&gt;My issue: &lt;/p&gt;
&lt;p&gt;There are many other high volume sites on this server which also connect to the same PHOTOS UNC share and performance becomes unacceptable with FileAttributeCheckThreshold values &amp;lt; 5... in fact I would prefer to use 30 as a general rule on this server. Is it possible to use a FileAttributeCheckThreshold of 30 but somehow force a single&amp;nbsp;UNC based virtual directory to always recheck the content from the source?&lt;/p&gt;
&lt;p&gt;I also don&amp;#39;t belive that File Change Notications would be appropriate for me given the large size (15TB, 20M files) under the UNC share.&lt;/p&gt;
&lt;p&gt;I appreciate any advice you might have!!&lt;/p&gt;</description></item><item><title>PDF Caching with IIS 6</title><link>http://forums.iis.net/p/1160194/1914105.aspx#1914105</link><pubDate>Thu, 20 Aug 2009 15:25:28 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1914105</guid><dc:creator>trboyden</dc:creator><cs:applicationKey>troubleshooting--1</cs:applicationKey><description>&lt;p&gt;We have an ASP.NET web application on a Windows 2003 R2 SP2 server that calls a PHP script on a Sun/Apache content server to retrieve (force download) PDF files. If a PDF changes after it has been downloaded/viewed from the IIS server, the old version of the PDF file is still provided by the IIS server. Running the PHP script directly, the newer version of the PDF file is downloaded. We set it up this way because the file download performance is faster pulling the file directly from the server where the content lives. Anyone have any idea what is causing the PDF to be cached on the IIS server, and how to stop it from caching the PDFs?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Tim&lt;br /&gt;&lt;/p&gt;</description></item><item><title>IIS7 Caching Difficulties</title><link>http://forums.iis.net/p/1159836/1912659.aspx#1912659</link><pubDate>Wed, 05 Aug 2009 23:06:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1912659</guid><dc:creator>ShadwChsr</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve been trying to configure server side caching for a WCF service hosted on IIS7, but I&amp;#39;ve been encountering some strange issues that appear to be either design flaws or bugs in IIS7&amp;#39;s caching framework.&lt;/p&gt;
&lt;p&gt;*&amp;nbsp;The documentation for &amp;quot;duration&amp;quot; on a caching profile states that it&amp;#39;s configured as &amp;quot;seconds&amp;quot;, even though it&amp;#39;s a timespan instance. If it was a TimeSpan, specifying duration=&amp;quot;5&amp;quot; would mean 5 days, not 5 seconds. The documentation appears to be wrong.&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/ms691315.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms691315.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;* The documentation states that the &amp;quot;location&amp;quot; value&amp;#39;s default is &amp;quot;Any&amp;quot;. However, when I view the HTTP response IIS7 has set cache-control to &amp;quot;no-cache&amp;quot;. The documentation appears to be wrong. &lt;a href="http://msdn.microsoft.com/en-us/library/ms691315.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms691315.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;* There is no way to configure server side caching without also setting client-side headers! This is an extremely aggrivating&amp;nbsp;frustration and I might be a design oversight. For example, setting &amp;lt;add extension=&amp;quot;.svc&amp;quot; policy=&amp;quot;CacheForTimePeriod&amp;quot; duration=&amp;quot;12:00:00&amp;quot; /&amp;gt; results in a &amp;quot;Cache-Control: no-cache&amp;quot; header, which is not what I want. There doesn&amp;#39;t appear to be any way to configure server side caching without affecting the cache-control header. For example, I may want to configure server side caching while leaving the client at it&amp;#39;s &amp;quot;default&amp;quot; setting.&lt;/p&gt;
&lt;p&gt;* The documentation for &amp;quot;varyByQueryString&amp;quot; is confusing. Does that mean that differing querystrings are treated as the &lt;em&gt;same response &lt;/em&gt;by kernel mode caching? Shouldn&amp;#39;t the default be to treat each canonical URL (including querystrings) as a unique response for caching, even in the kernel? It seems as though the correct behavior is the opposite - that all querystrings are &amp;quot;non-varied&amp;quot; unless specified otherwise. They are parameters that affect the response, after all. For example, product.aspx?product=1 is NOT the same as product.aspx?product=2. &lt;/p&gt;
&lt;p&gt;Take an ASPX site as an example. How am I supposed to configure varyByQueryString? If I have 100 .ASPX pages and want to cache them, I would then create a &amp;quot;caching profile&amp;quot; for the .ASPX extension in the web.config. Each of those 100 ASPX files may have differnet querystrings - can you imagine having to configure hundreds of different querystring parameters in a single varyByQueryString attribute? What a nightmare.&lt;/p&gt;
&lt;p&gt;* My application sets it&amp;#39;s own &amp;quot;Cache-Control&amp;quot; header of &amp;quot;public,max-age=1209600&amp;quot;. If I also configure IIS 7 server side caching, the returned response header appears as: &amp;quot;Cache-Control: no-cache,public,max-age=1209600&amp;quot;. Definitely a bug! Again, IIS is mucking with my headers and not even doing it correctly.&lt;/p&gt;
&lt;p&gt;* IIS 7 doesn&amp;#39;t &amp;quot;transparently cache&amp;quot; based on what the application sets in it&amp;#39;s cache-control header. For example, my application itself could determine what needs to be cached on a url-by-url basis. I&amp;#39;m already setting &amp;quot;Cache-Control: Public&amp;quot; as a response header. IIS7&amp;#39;s server side cache is &amp;quot;upstream&amp;quot; from my generated response, so if caching was enabled it seems to me it should just gracefully cache as the default behavior.&amp;nbsp;For example, I might be programming an ASP.NET MVC website - there are no extensions to configure since it uses application routing. That makes using IIS7 caching next to impossible.&lt;/p&gt;
&lt;p&gt;Help! I really need server side caching for performance, but I&amp;#39;m not sure how to make it behave properly and stop messing with my client side headers.&lt;/p&gt;</description></item><item><title>IIS 6.0, Compression and semi-dynamic data</title><link>http://forums.iis.net/p/1158441/1907050.aspx#1907050</link><pubDate>Mon, 15 Jun 2009 15:24:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1907050</guid><dc:creator>osteinme</dc:creator><cs:applicationKey>tuning_iis--1</cs:applicationKey><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have a web service in C# that computes every 10 minutes some very large report - amount of data returned = 120MB. The report is cached.&lt;/p&gt;
&lt;p&gt;We will use HTTP compression but the issue I&amp;#39;m having is that it will compress our cached&amp;nbsp;report for each client request :&amp;nbsp;in IIS 6.0&amp;nbsp;only static files are cached&amp;nbsp;even when compressed.&lt;/p&gt;
&lt;p&gt;Is there some way around it so that IIS caches the compressed report and serves it to clients, and we compress again only once&amp;nbsp;the report has changed&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;In the past we have tried to compresse the data ourselves in the web&amp;nbsp;service but the gain was not as good as when IIS does the job.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Olivier&lt;/p&gt;</description></item><item><title>Configured for client caching but Expires header not showing in Response Headers</title><link>http://forums.iis.net/p/1157550/1903391.aspx#1903391</link><pubDate>Tue, 12 May 2009 00:28:31 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903391</guid><dc:creator>ronpeled7</dc:creator><cs:applicationKey>iis7_-_configuration__scripting-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;I am trying to configure a server to use client caching, ie - show &amp;#39;Expires&amp;#39; header for certain file types. For now I would like to start with the style sheets (*.css) which are located under the /css folder. I have these lines in a web.config inside the css folder:&lt;/p&gt;&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.webServer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;staticContent&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;clientCache cacheControlMode=&amp;quot;UseMaxAge&amp;quot; cacheControlMaxAge=&amp;quot;01:00:00&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/staticContent&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/system.webServer&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;but without success. I also followed many other tutorials and guides but nothing worked, please assist!&lt;/p&gt;&lt;p&gt;The server is Windows Server 2008 with IIS7. Please let me know, &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: All URLs return homepage html.   Output Cache issue</title><link>http://forums.iis.net/p/1156525/1899917.aspx#1899917</link><pubDate>Wed, 08 Apr 2009 17:39:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1899917</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>fastcgi_module-41</cs:applicationKey><description>&lt;p&gt;Can you please try this:&lt;/p&gt;
&lt;p&gt;1. Remove the vary by querystring &lt;/p&gt;
&lt;p&gt;2. Add&amp;nbsp;varyByHeaders=&amp;quot;x-original-url&amp;quot;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tries this caching configuration with WordPress and URL rewrite&amp;nbsp;and it works for me:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;add extension=&amp;quot;.php&amp;quot; policy=&amp;quot;CacheForTimePeriod&amp;quot; kernelCachePolicy=&amp;quot;DisableCache&amp;quot; duration=&amp;quot;00:00:30&amp;quot; varyByHeaders=&amp;quot;x-original-url&amp;quot; /&amp;gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Zend opens up beta program for Zend Server: easy install of PHP on Windows</title><link>http://forums.iis.net/p/1155443/1894201.aspx#1894201</link><pubDate>Fri, 20 Feb 2009 17:03:40 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1894201</guid><dc:creator>bcottel</dc:creator><cs:applicationKey>php_community-49</cs:applicationKey><description>PHP &amp;amp; IIS working together even better?!&amp;nbsp; Yes, it&amp;#39;s possible.&amp;nbsp; Zend, the PHP Company, today made public a beta of its next generation PHP web application server, in both a free community supported edition (Zend Server CE) and a commercial edition (Zend Server).&amp;nbsp;&amp;nbsp; Zend announced this week that it has opened a public beta of their new product called Zend Server. It&amp;#39;s completely free for anyone to go download and try it out. Zend is really hoping for some good feedback to make this product the best it can be.&lt;br /&gt;&lt;br /&gt;The great thing is that with the work that Microsoft and Zend have done together, IIS 7 now runs PHP on a par with Apache, very competitively, and there is more &amp;amp; more database connectivity as well, meaning PHP is really working quite well now on Windows server.&amp;nbsp; And it&amp;#39;s even easier to get going with PHP on Windows because these two products are using native MSI installers on Windows.&lt;br /&gt;&lt;br /&gt;Zend Server is designed to be an all-in-one install to get setup quickly with PHP, Zend Framework, and a PHP optimizer (opcode cache, very much a necessity with dynamic languages like PHP). It also comes with an admin UI to configure PHP easily. It uses native installers for various operating systems, and is available for Windows, Mac OS X (the CE edition), and Linux (.deb, .rpm, or tarball).&lt;br /&gt;&lt;br /&gt;There are two versions being released. The full Zend Server (which after Beta will be a commercial product, price to be announced), and Zend Server CE, which is a version completely free to use however you wish. The full Zend Server comes with the following additional features:&lt;br /&gt;&lt;br /&gt;* Page Caching (based on URLs, no code changes necessary)&lt;br /&gt;* Monitoring (email alerts on slow DB queries, broken code executions, etc.)&lt;br /&gt;* Support &amp;amp; Hot Fixes (so PHP is always up-to-date)&lt;br /&gt;&lt;br /&gt;If you are interested in trying out Zend Server for yourself, check out some of the following links:&lt;br /&gt;&lt;br /&gt;* Learn more about Zend Server: &lt;a href="http://www.zend.com/products/server/"&gt;http://www.zend.com/products/server/&lt;/a&gt;&lt;br /&gt;* Download Zend Server (either edition) to try out in beta: &lt;a href="http://www.zend.com/products/server/downloads-all"&gt;http://www.zend.com/products/server/downloads-all&lt;/a&gt;&lt;br /&gt;* Join the Zend Forums to discuss your experiences: &lt;a href="http://forums.zend.com/"&gt;http://forums.zend.com/&lt;/a&gt;&lt;br /&gt;* Andi Gutmans (Zend&amp;#39;s CEO and co-founder) blogs on Zend Server: &lt;a href="http://andigutmans.blogspot.com/"&gt;http://andigutmans.blogspot.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>IIS 6.0 not caching. Screens attached</title><link>http://forums.iis.net/p/1154160/1889215.aspx#1889215</link><pubDate>Wed, 07 Jan 2009 02:25:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889215</guid><dc:creator>supreme</dc:creator><cs:applicationKey>tuning_iis--1</cs:applicationKey><description>&lt;p&gt;Hi Guys,&lt;/p&gt;&lt;p&gt;I&amp;#39;m new to IIS 6 and its not caching, im at the point of tearing my hair out.. anyone any idea? I&amp;#39;ve attached a screenshot and have checked my registry - Uricache is still default 1. &lt;/p&gt;&lt;p&gt;This machine is a dual Quad core with 4gb ram. Server 2003. IIS 6. running mostly ASPX pages. This is purely an application server and running below 10%. my mssql is on a separate server and running close to 90%.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve set IIS to cache all asp files but the cache dir in &amp;quot;C:\WINDOWS\system32\inetsrv\ASP Compiled Templates&amp;quot; remains empty. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;help! &lt;br /&gt;&lt;/p&gt;&lt;p&gt;screenshot attached.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://farm4.static.flickr.com/3347/3175006043_be92ed5e0f.jpg" width="378" height="416" alt="" /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Does ODBC Logging disable IIS Cache?</title><link>http://forums.iis.net/p/1153465/1886322.aspx#1886322</link><pubDate>Mon, 01 Dec 2008 07:15:55 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1886322</guid><dc:creator>ziver_register</dc:creator><cs:applicationKey>tuning_iis--1</cs:applicationKey><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I want to store IIS logs directly to database, in order to get real time information about the site traffic. I will show custom advertisements in order to egt more traffic to the parts of the site that have low hits.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have read that i might create a ODBC DSN to store the IIS log files in db, as mentioned in the article below : &lt;a href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8ea48fac-28c0-46ae-9b7a-e4682dae3264.mspx?mfr=true"&gt;http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8ea48fac-28c0-46ae-9b7a-e4682dae3264.mspx?mfr=true&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However it warns us as: &amp;quot;&lt;em&gt;&lt;u&gt;When ODBC logging is enabled, IIS disables the HTTP.sys kernel-mode cache. For this reason, implementing ODBC logging will degrade overall server performance. ODBC logging is not recommended unless your database limits you to this option&lt;/u&gt;&lt;/em&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;Does this mean IIS will disable all Caches? I use OutputCache in my pages, and also &lt;br /&gt;use System.Web.HttpRuntime.Cache to insert and fetch my frequently used objects. The question is: &lt;/p&gt;
&lt;p&gt;Using ODBC logging will disable my caching mechanism or not?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Ziver&lt;/p&gt;</description></item><item><title>Re: Next Release - Fix for Caching Bug?</title><link>http://forums.iis.net/p/1152826/1885112.aspx#1885112</link><pubDate>Mon, 17 Nov 2008 18:51:42 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1885112</guid><dc:creator>DanielVL</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;To close this thread, it has been released and it has the bug fix:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.iis.net/extensions"&gt;http://www.iis.net/extensions&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>