<?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>FAQ - Frequently Asked Questions</title><link>http://forums.asp.net/13.aspx</link><description>Your question has probably already been answered. Look here for some great answers!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1962948.aspx</link><pubDate>Thu, 18 Oct 2007 19:33:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1962948</guid><dc:creator>Evervision</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1962948.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1962948</wfw:commentRss><description>&lt;p&gt;I found that &amp;quot;ClearHeaders&amp;quot; when called at the wrong time prevented people from logging in. So I removed it for mine. I also found that repeated calls to add &amp;quot;Cache-Control&amp;quot; overwrote the previous calls on IIS 6.0/2k3 Server/ .Net 2.0. So I put them all in the same one. I also added the &amp;quot;max-age=0&amp;quot; to &amp;quot;Cache-Control&amp;quot; for Firefox.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;pre class="coloredcode"&gt;        Response.AppendHeader(&lt;span class="st"&gt;&amp;quot;Cache-Control&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;no-cache; private; no-store; must-revalidate; max-stale=0; post-check=0; pre-check=0; max-age=0&amp;quot;&lt;/span&gt;); &lt;span class="cmt"&gt;// HTTP 1.1&lt;/span&gt;&lt;br /&gt;        Response.AppendHeader(&lt;span class="st"&gt;&amp;quot;Pragma&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;no-cache&amp;quot;&lt;/span&gt;); &lt;span class="cmt"&gt;// HTTP 1.1&lt;/span&gt;&lt;br /&gt;        Response.AppendHeader(&lt;span class="st"&gt;&amp;quot;Keep-Alive&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;timeout=3, max=993&amp;quot;&lt;/span&gt;); &lt;span class="cmt"&gt;// HTTP 1.1&lt;/span&gt;&lt;br /&gt;        Response.AppendHeader(&lt;span class="st"&gt;&amp;quot;Expires&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;Mon, 26 Jul 1997 05:00:00 GMT&amp;quot;&lt;/span&gt;); &lt;span class="cmt"&gt;// HTTP 1.1&lt;/span&gt;&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1949216.aspx</link><pubDate>Wed, 10 Oct 2007 09:43:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1949216</guid><dc:creator>ashwani2kumar</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1949216.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1949216</wfw:commentRss><description>&lt;p&gt;hello use this &lt;/p&gt;
&lt;p&gt;Response.ClearHeaders();&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; Response.AppendHeader(&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;Cache-Control&amp;quot;&lt;/font&gt;&lt;/span&gt;, &lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;no-cache&amp;quot;&lt;/font&gt;&lt;/span&gt;); &lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;//HTTP 1.1&lt;/font&gt;&lt;/span&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; Response.AppendHeader(&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;Cache-Control&amp;quot;&lt;/font&gt;&lt;/span&gt;, &lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;private&amp;quot;&lt;/font&gt;&lt;/span&gt;); &lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;// HTTP 1.1&lt;/font&gt;&lt;/span&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; Response.AppendHeader(&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;Cache-Control&amp;quot;&lt;/font&gt;&lt;/span&gt;, &lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;no-store&amp;quot;&lt;/font&gt;&lt;/span&gt;); &lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;// HTTP 1.1&lt;/font&gt;&lt;/span&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; Response.AppendHeader(&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;Cache-Control&amp;quot;&lt;/font&gt;&lt;/span&gt;, &lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;must-revalidate&amp;quot;&lt;/font&gt;&lt;/span&gt;); &lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;// HTTP 1.1&lt;/font&gt;&lt;/span&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; Response.AppendHeader(&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;Cache-Control&amp;quot;&lt;/font&gt;&lt;/span&gt;, &lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;max-stale=0&amp;quot;&lt;/font&gt;&lt;/span&gt;); &lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;// HTTP 1.1 &lt;/font&gt;&lt;/span&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; Response.AppendHeader(&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;Cache-Control&amp;quot;&lt;/font&gt;&lt;/span&gt;, &lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;post-check=0&amp;quot;&lt;/font&gt;&lt;/span&gt;); &lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;// HTTP 1.1 &lt;/font&gt;&lt;/span&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; Response.AppendHeader(&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;Cache-Control&amp;quot;&lt;/font&gt;&lt;/span&gt;, &lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;pre-check=0&amp;quot;&lt;/font&gt;&lt;/span&gt;); &lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;// HTTP 1.1 &lt;/font&gt;&lt;/span&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; Response.AppendHeader(&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;Pragma&amp;quot;&lt;/font&gt;&lt;/span&gt;, &lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;no-cache&amp;quot;&lt;/font&gt;&lt;/span&gt;); &lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;// HTTP 1.1 &lt;/font&gt;&lt;/span&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; Response.AppendHeader(&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;Keep-Alive&amp;quot;&lt;/font&gt;&lt;/span&gt;, &lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;timeout=3, max=993&amp;quot;&lt;/font&gt;&lt;/span&gt;); &lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;// HTTP 1.1 &lt;/font&gt;&lt;/span&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; Response.AppendHeader(&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;Expires&amp;quot;&lt;/font&gt;&lt;/span&gt;, &lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&amp;quot;Mon, 26 Jul 1997 05:00:00 GMT&amp;quot;&lt;/font&gt;&lt;/span&gt;); &lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;// HTTP 1.1 &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="cmt"&gt;Ashwani&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1947525.aspx</link><pubDate>Tue, 09 Oct 2007 13:25:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1947525</guid><dc:creator>ilovebbs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1947525.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1947525</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;LudovicoVan:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Maybe keep in mind that outputs an HTTP/1.1 compliant Cache-Control header, not the deprecated HTTP/1.0 Pragma: NoCache. Also, sending HTTP headers as META tags as you show above&amp;nbsp;is furtherly deprecated and known to be unreliable, so that&amp;#39;s maybe where your original problems came from&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;i agree this talk.&lt;/p&gt;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1902893.aspx</link><pubDate>Tue, 11 Sep 2007 14:19:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1902893</guid><dc:creator>nisarkhan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1902893.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1902893</wfw:commentRss><description>&lt;p&gt;trust me guys i have tried all the technique you can think of&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;page_header:&lt;br /&gt;&lt;br /&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;language&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;JavaScript&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;window.history.forward(1);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;script&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;meta&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;http-equiv&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=expires&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;content&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=-1&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;meta&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;http-equiv&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=Cache-Control&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;CONTENT&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=no-cache&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;meta&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;http-equiv&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=Pragma&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;CONTENT&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=no-cache&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;&amp;lt;body onload=&amp;quot;history.go(1);&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;but still i able to click on back button, &lt;strong&gt;i&amp;#39;m using IE7&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1902114.aspx</link><pubDate>Tue, 11 Sep 2007 05:45:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1902114</guid><dc:creator>Sonali Das</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1902114.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1902114</wfw:commentRss><description>&lt;p&gt;To make Back button disabled , you can use the following line of code in the Web page(.aspx):&lt;/p&gt;
&lt;p&gt;&amp;lt;body onload=&amp;quot;history.go(1);&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;I think it might help.&lt;/p&gt;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1900768.aspx</link><pubDate>Mon, 10 Sep 2007 12:35:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1900768</guid><dc:creator>shaurya</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1900768.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1900768</wfw:commentRss><description>&lt;p&gt;Hi NisarKhan,&lt;/p&gt;
&lt;p&gt;If&amp;nbsp;you want the user to stay on the same page when pressing back button in internet explorer. Just put the folloing javascript in the page from where you are coming to this page(where you don&amp;#39;t want to user go back through back button).&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;window.history.forward(1);&lt;/font&gt;&lt;br /&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000" size="2"&gt;script&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt; 
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;Hope it works for you &lt;font color="#000000"&gt;&lt;img src="http://forums.asp.net/emoticons/emotion-21.gif" alt="Yes" /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Shaurya Tomer&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1898669.aspx</link><pubDate>Fri, 07 Sep 2007 21:53:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1898669</guid><dc:creator>nisarkhan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1898669.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1898669</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;RalphCEO:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Set it at the IIS level.&lt;/p&gt;
&lt;p&gt;Open IIS and right click on your Web Site or Virtual Directory and click Properties.&amp;nbsp; Select the Http Headers tab.&amp;nbsp; In the top of the dialogue window is a check box, &amp;quot;Enable Content Expiration&amp;quot;&amp;nbsp; Select it.&amp;nbsp; Then select the option to &amp;quot;Expire Immediately&amp;quot;&lt;/p&gt;
&lt;p&gt;That should do it.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;does that mean that, user wont be able to click on back button in normal browsing pages? i mean to say the, the expire should happen only when the time expired? by changing the setting on IIS server does that mean, user wont be able to click back button and browse different pages?&lt;/p&gt;
&lt;p&gt;thoughts?&lt;/p&gt;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1898631.aspx</link><pubDate>Fri, 07 Sep 2007 20:59:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1898631</guid><dc:creator>RalphCEO</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1898631.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1898631</wfw:commentRss><description>&lt;p&gt;Set it at the IIS level.&lt;/p&gt;
&lt;p&gt;Open IIS and right click on your Web Site or Virtual Directory and click Properties.&amp;nbsp; Select the Http Headers tab.&amp;nbsp; In the top of the dialogue window is a check box, &amp;quot;Enable Content Expiration&amp;quot;&amp;nbsp; Select it.&amp;nbsp; Then select the option to &amp;quot;Expire Immediately&amp;quot;&lt;/p&gt;
&lt;p&gt;That should do it.&lt;/p&gt;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1804914.aspx</link><pubDate>Mon, 16 Jul 2007 06:14:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1804914</guid><dc:creator>anilakhwaja</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1804914.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1804914</wfw:commentRss><description>&lt;p class="MsoNormal"&gt;&lt;font face="Arial" color="navy" size="2"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:navy;FONT-FAMILY:Arial;"&gt;We have done this&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;font face="Arial" color="navy" size="2"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:navy;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;font face="Courier New" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="blue"&gt;&lt;span style="COLOR:blue;"&gt;protected&lt;/span&gt;&lt;/font&gt; &lt;font color="blue"&gt;&lt;span style="COLOR:blue;"&gt;override&lt;/span&gt;&lt;/font&gt; &lt;font color="blue"&gt;&lt;span style="COLOR:blue;"&gt;void&lt;/span&gt;&lt;/font&gt; OnLoad(&lt;font color="teal"&gt;&lt;span style="COLOR:teal;"&gt;EventArgs&lt;/span&gt;&lt;/font&gt; e)&lt;/span&gt;&lt;/font&gt;&lt;font face="Courier New" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/font&gt;&lt;font face="Courier New" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Cache.SetNoStore();&lt;/span&gt;&lt;/font&gt;&lt;font face="Courier New" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Cache.SetCacheability(&lt;font color="teal"&gt;&lt;span style="COLOR:teal;"&gt;HttpCacheability&lt;/span&gt;&lt;/font&gt;.NoCache);&lt;/span&gt;&lt;/font&gt;&lt;font face="Courier New" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Cache.SetExpires(&lt;font color="teal"&gt;&lt;span style="COLOR:teal;"&gt;DateTime&lt;/span&gt;&lt;/font&gt;.Now);&lt;/span&gt;&lt;/font&gt;&lt;font face="Courier New" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="blue"&gt;&lt;span style="COLOR:blue;"&gt;base&lt;/span&gt;&lt;/font&gt;.OnLoad(e);&lt;/span&gt;&lt;/font&gt;&lt;font face="Courier New" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" color="navy" size="2"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" color="navy" size="2"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:navy;FONT-FAMILY:Arial;"&gt;But this solves the problem only on LAN.&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" color="navy" size="2"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:navy;FONT-FAMILY:Arial;"&gt;For fixed IP, caching problem persists.&lt;/span&gt;&lt;/font&gt;&lt;font face="Verdana" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;/font&gt; 
&lt;p&gt;so ne other option to resolve da problem ... &lt;/p&gt;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1802535.aspx</link><pubDate>Fri, 13 Jul 2007 14:36:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1802535</guid><dc:creator>sdgough</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1802535.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1802535</wfw:commentRss><description>&lt;p&gt;One option would be to version your js files? This article, although primarily about PowerShell,&amp;nbsp; talks about this approach (sample code available on Code Project) -- http://msmvps.com/blogs/omar/archive/2006/12/15/automate-website-deployment-using-powershell.aspx&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Another option would be to include your js files as embedded resources.&amp;nbsp; This is what we do (actually we compress and obfuscate them too via Aptana).&amp;nbsp; Now I am not 100% certain, but I believe a new version of your js files would create a new embedded resource string (&amp;lt;&lt;span class="attribute-value"&gt;WebResource.axd?d=XXXX) and therefore prevent caching of an older version.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1802211.aspx</link><pubDate>Fri, 13 Jul 2007 11:41:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1802211</guid><dc:creator>anilakhwaja</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1802211.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1802211</wfw:commentRss><description>&lt;p&gt;Can&amp;nbsp;u plz help me in the scenerio which is some what the same .. .as its addressing here&lt;/p&gt;
&lt;p&gt;sccenario:&lt;/p&gt;
&lt;p&gt;we have a proxy server which is assigned by a fixed ip and user access it through proxy ...&lt;/p&gt;
&lt;p&gt;we have deployed our application&amp;nbsp;over there, which is built in &amp;nbsp;ASP.NET 2.0 and we have also used seperate javascript files (*.js) and proxy server as usual caches the page and javascript files&lt;/p&gt;
&lt;p&gt;when ever we have some changes we deploy our application again at the proxy server&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but when we run the application it uses the same cached javascript files and dont use the new one which we have deployed&lt;/p&gt;
&lt;p&gt;can you help me in this regard that what should i do ???&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1756842.aspx</link><pubDate>Fri, 15 Jun 2007 15:56:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1756842</guid><dc:creator>nisarkhan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1756842.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1756842</wfw:commentRss><description>&lt;p&gt;i have been looking for the solutions from pretty long time and after reading this thread i&amp;#39;m still having no luck&lt;/p&gt;
&lt;p&gt;i followed everything you guys have talked here but nothing works &lt;/p&gt;
&lt;p&gt;is anybody can help please?&lt;/p&gt;
&lt;p&gt;i have a windows authentication mode using asp.net 2 C#&lt;/p&gt;
&lt;p&gt;if a user clicks on back button i want the user to stay on the same page or expire the back button or disable the back button but something that when user clicks back button i dont want the user to be able to go to previous page&lt;/p&gt;
&lt;p&gt;also i have open a new thread if you please wanna look at it?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://forums.asp.net/t/1120854.aspx"&gt;http://forums.asp.net/t/1120854.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1596464.aspx</link><pubDate>Tue, 27 Feb 2007 09:49:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1596464</guid><dc:creator>buntybunty</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1596464.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1596464</wfw:commentRss><description>&lt;a href="http://i/"&gt;I&lt;/a&gt; have updated the code, the changes were not persisting the way i desired. New code below: 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class=coloredcode&gt;            Response.ClearHeaders();
            Response.AppendHeader(&lt;span class=st&gt;&lt;font color=#ff0000&gt;"Cache-Control"&lt;/font&gt;&lt;/span&gt;, &lt;span class=st&gt;&lt;font color=#ff0000&gt;"no-cache"&lt;/font&gt;&lt;/span&gt;); &lt;span class=cmt&gt;&lt;font color=#00d502&gt;//HTTP 1.1&lt;/font&gt;&lt;/span&gt;
            Response.AppendHeader(&lt;span class=st&gt;&lt;font color=#ff0000&gt;"Cache-Control"&lt;/font&gt;&lt;/span&gt;, &lt;span class=st&gt;&lt;font color=#ff0000&gt;"private"&lt;/font&gt;&lt;/span&gt;); &lt;span class=cmt&gt;&lt;font color=#00d502&gt;// HTTP 1.1&lt;/font&gt;&lt;/span&gt;
            Response.AppendHeader(&lt;span class=st&gt;&lt;font color=#ff0000&gt;"Cache-Control"&lt;/font&gt;&lt;/span&gt;, &lt;span class=st&gt;&lt;font color=#ff0000&gt;"no-store"&lt;/font&gt;&lt;/span&gt;); &lt;span class=cmt&gt;&lt;font color=#00d502&gt;// HTTP 1.1&lt;/font&gt;&lt;/span&gt;
            Response.AppendHeader(&lt;span class=st&gt;&lt;font color=#ff0000&gt;"Cache-Control"&lt;/font&gt;&lt;/span&gt;, &lt;span class=st&gt;&lt;font color=#ff0000&gt;"must-revalidate"&lt;/font&gt;&lt;/span&gt;); &lt;span class=cmt&gt;&lt;font color=#00d502&gt;// HTTP 1.1&lt;/font&gt;&lt;/span&gt;
            Response.AppendHeader(&lt;span class=st&gt;&lt;font color=#ff0000&gt;"Cache-Control"&lt;/font&gt;&lt;/span&gt;, &lt;span class=st&gt;&lt;font color=#ff0000&gt;"max-stale=0"&lt;/font&gt;&lt;/span&gt;); &lt;span class=cmt&gt;&lt;font color=#00d502&gt;// HTTP 1.1 &lt;/font&gt;&lt;/span&gt;
            Response.AppendHeader(&lt;span class=st&gt;&lt;font color=#ff0000&gt;"Cache-Control"&lt;/font&gt;&lt;/span&gt;, &lt;span class=st&gt;&lt;font color=#ff0000&gt;"post-check=0"&lt;/font&gt;&lt;/span&gt;); &lt;span class=cmt&gt;&lt;font color=#00d502&gt;// HTTP 1.1 &lt;/font&gt;&lt;/span&gt;
            Response.AppendHeader(&lt;span class=st&gt;&lt;font color=#ff0000&gt;"Cache-Control"&lt;/font&gt;&lt;/span&gt;, &lt;span class=st&gt;&lt;font color=#ff0000&gt;"pre-check=0"&lt;/font&gt;&lt;/span&gt;); &lt;span class=cmt&gt;&lt;font color=#00d502&gt;// HTTP 1.1 &lt;/font&gt;&lt;/span&gt;
            Response.AppendHeader(&lt;span class=st&gt;&lt;font color=#ff0000&gt;"Pragma"&lt;/font&gt;&lt;/span&gt;, &lt;span class=st&gt;&lt;font color=#ff0000&gt;"no-cache"&lt;/font&gt;&lt;/span&gt;); &lt;span class=cmt&gt;&lt;font color=#00d502&gt;// HTTP 1.1 &lt;/font&gt;&lt;/span&gt;
            Response.AppendHeader(&lt;span class=st&gt;&lt;font color=#ff0000&gt;"Keep-Alive"&lt;/font&gt;&lt;/span&gt;, &lt;span class=st&gt;&lt;font color=#ff0000&gt;"timeout=3, max=993"&lt;/font&gt;&lt;/span&gt;); &lt;span class=cmt&gt;&lt;font color=#00d502&gt;// HTTP 1.1 &lt;/font&gt;&lt;/span&gt;
            Response.AppendHeader(&lt;span class=st&gt;&lt;font color=#ff0000&gt;"Expires"&lt;/font&gt;&lt;/span&gt;, &lt;span class=st&gt;&lt;font color=#ff0000&gt;"Mon, 26 Jul 1997 05:00:00 GMT"&lt;/font&gt;&lt;/span&gt;); &lt;span class=cmt&gt;&lt;font color=#00d502&gt;// HTTP 1.1 &lt;/font&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1596446.aspx</link><pubDate>Tue, 27 Feb 2007 09:34:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1596446</guid><dc:creator>buntybunty</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1596446.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1596446</wfw:commentRss><description>&amp;nbsp;How to prevent browser and proxy caching of web pages what is the mean of this sentances?</description></item><item><title>Re: How to prevent browser and proxy caching of web pages</title><link>http://forums.asp.net/thread/1596355.aspx</link><pubDate>Tue, 27 Feb 2007 07:59:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1596355</guid><dc:creator>cozyshri23</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1596355.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=13&amp;PostID=1596355</wfw:commentRss><description>&lt;p&gt;The above lines dont seem to work for fireFox 2.0 .&lt;/p&gt;&lt;p&gt;I need to clear the cache coz when I do a browser back, there is data on my textbox.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>