<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.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/"><channel><title>State Management</title><link>http://forums.asp.net/22.aspx</link><description>Managing ASP.NET state - ViewState, Application, Session, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=69&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Cache-control private?</title><link>http://forums.asp.net/thread/3275507.aspx</link><pubDate>Sun, 05 Jul 2009 16:49:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275507</guid><dc:creator>RickNZ</dc:creator><author>RickNZ</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275507.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3275507</wfw:commentRss><description>&lt;p&gt;The book I mentioned is the one in my signature:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.amazon.com/gp/product/1430223839?ie=UTF8&amp;amp;tag=mfgn21-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1430223839"&gt;Ultra-fast ASP.NET: Building Ultra-Fast and Ultra-Scalable Websites Using ASP.NET and SQL Server&lt;/a&gt;&lt;img style="display:none;" src="http://www.assoc-amazon.com/e/ir?t=mfgn21-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1430223839" width="1" border="0" height="1" alt="" /&gt;&lt;/p&gt;&lt;p&gt;Hard to say what&amp;#39;s going on.&amp;nbsp; Have you looked at the returned HTML with Fiddler, to see what&amp;#39;s happening?&lt;/p&gt;&lt;p&gt;With no Expires or max-age headers, the browser should request the page again if you come to it again.&amp;nbsp; However, browsers are free to do some &amp;quot;extra&amp;quot; caching when you&amp;#39;re moving back-and-forth between a requested page in the same browser session.&lt;/p&gt;&lt;p&gt;In general, users (and websites) expect at least a minimal amount of caching on the client.&amp;nbsp; That&amp;#39;s why Cache-control: private is the default.&amp;nbsp; If you don&amp;#39;t want any caching at all, then you should disable it with NoCache, as you said.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Cache-control private?</title><link>http://forums.asp.net/thread/3275355.aspx</link><pubDate>Sun, 05 Jul 2009 12:32:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275355</guid><dc:creator>jamesgurung</dc:creator><author>jamesgurung</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275355.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3275355</wfw:commentRss><description>&lt;p&gt;Thanks for your reply. Which is your book (I&amp;#39;m sure you were hoping I&amp;#39;d ask!!)? The main reason I posted is because IE8 is being funny with my pages. I can always reproduce as follows:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Open www.mydomain.com/test.aspx in IE8 (Safe Mode)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Modify page in VS.NET, and upload&lt;/li&gt;&lt;li&gt;Open www.mydomain.com/test.aspx in IE8 again (by clicking in the address bar and pressing Enter)&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;No changes appear. Of course, I can see changes by clearing the cache, or pressing Ctrl-F5 - or even just navigating to another page and back. No such problem in Firefox 3.5.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The only cache-related header that is sent is cache-control=&amp;quot;private&amp;quot; (no expires, etc). Presumably I can fix with Response.Cache.SetCacheability(HttpCacheability.NoCache) in Global.asax - but I still don&amp;#39;t see how this is a good default setting.&lt;/p&gt;&lt;p&gt;Or is this just IE8 being a terrible browser?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Cache-control private?</title><link>http://forums.asp.net/thread/3275073.aspx</link><pubDate>Sun, 05 Jul 2009 03:15:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275073</guid><dc:creator>RickNZ</dc:creator><author>RickNZ</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275073.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3275073</wfw:commentRss><description>&lt;p&gt;Cache-Control private says that it&amp;#39;s OK for the client to cache the page, subject to its expiration date.&amp;nbsp; The expiration can either be provided with Cache-Control: max-age, or with an Expires HTTP header.&amp;nbsp; In the default case, the page is set to expire immediately, which means that it won&amp;#39;t be cached.&lt;/p&gt;&lt;p&gt;One of the purposes of Cache-Control: private is really to tell intermediate proxies that they should not cache the page.&lt;/p&gt;&lt;p&gt;BTW, just because a page is dynamic doesn&amp;#39;t mean that it should never be cached.&amp;nbsp; There are many cases where caching a dynamic page is appropriate.&amp;nbsp; You can cache not only at the client, but also in proxies and in the server&amp;#39;s output cache.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;(FWIW, I cover this subject in detail in my book).&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Cache-control private?</title><link>http://forums.asp.net/thread/3274964.aspx</link><pubDate>Sat, 04 Jul 2009 21:14:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274964</guid><dc:creator>jamesgurung</dc:creator><author>jamesgurung</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274964.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3274964</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t understand why by default ASP.NET sends a cache-control=&amp;quot;private&amp;quot; header to the client? Surely .aspx pages should not be cached because they&amp;#39;re dynamic.&lt;/p&gt;&lt;p&gt;But then, it seems that browsers always go back to the server for each request anyway. What&amp;#39;s going on?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>