<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Prevent Js and Css Browser Caching Issues with ASP.NET</title>
	<atom:link href="http://www.michaelhamrah.com/blog/2009/03/prevent-js-and-css-browser-caching-issues-with-aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michaelhamrah.com/blog/2009/03/prevent-js-and-css-browser-caching-issues-with-aspnet/</link>
	<description>All the stuff after "Hello, World!"</description>
	<lastBuildDate>Mon, 16 Jan 2012 14:42:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: shaikh</title>
		<link>http://www.michaelhamrah.com/blog/2009/03/prevent-js-and-css-browser-caching-issues-with-aspnet/comment-page-1/#comment-111</link>
		<dc:creator>shaikh</dc:creator>
		<pubDate>Sat, 23 May 2009 08:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=168#comment-111</guid>
		<description>&lt;p&gt;i try it using
using following but its not working&lt;/p&gt;

&lt;p&gt;protected void Page_PreInit(object sender, EventArgs e)
    {
        List fileList = new List();
        fileList = new List();
        fileList.Add(&quot;PFR_EOT.js&quot;);
        fileList.Add(&quot;util_ajax.js&quot;);
        fileList.Add(&quot;sessvars.js&quot;);
        fileList.Add(&quot;dataset_filter.js&quot;);
        foreach (string fileName in fileList)
        {
            string dModified = new System.IO.FileInfo(Server.MapPath(fileName)).LastWriteTime.Ticks.ToString();
            string fSrc = fileName + &quot;?t=&quot; + Session[&quot;examid&quot;].ToString();
             Page.ClientScript.RegisterClientScriptInclude(this.GetType(), fSrc, fSrc);&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;    }
    fileList.Clear();
}
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>i try it using
using following but its not working</p>

<p>protected void Page_PreInit(object sender, EventArgs e)
    {
        List fileList = new List();
        fileList = new List();
        fileList.Add(&#8220;PFR_EOT.js&#8221;);
        fileList.Add(&#8220;util_ajax.js&#8221;);
        fileList.Add(&#8220;sessvars.js&#8221;);
        fileList.Add(&#8220;dataset_filter.js&#8221;);
        foreach (string fileName in fileList)
        {
            string dModified = new System.IO.FileInfo(Server.MapPath(fileName)).LastWriteTime.Ticks.ToString();
            string fSrc = fileName + &#8220;?t=&#8221; + Session["examid"].ToString();
             Page.ClientScript.RegisterClientScriptInclude(this.GetType(), fSrc, fSrc);</p>

<pre><code>    }
    fileList.Clear();
}
</code></pre>]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.michaelhamrah.com/blog/2009/03/prevent-js-and-css-browser-caching-issues-with-aspnet/comment-page-1/#comment-85</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 11 Mar 2009 15:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=168#comment-85</guid>
		<description>&lt;p&gt;The problem is the AssemblyVersion attribute isn&#039;t specified correctly.  In the AssemblyInfo.cs file change the AssemblyVersion attribute to:&lt;/p&gt;

&lt;p&gt;[assembly: AssemblyVersion(&quot;1.0.*&quot;)]&lt;/p&gt;

&lt;p&gt;You can also try the random number approach- set _assemblyRevision = new Random(1000).Next(9999) will produce a random number between 1000 and 9999.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The problem is the AssemblyVersion attribute isn&#8217;t specified correctly.  In the AssemblyInfo.cs file change the AssemblyVersion attribute to:</p>

<p>[assembly: AssemblyVersion("1.0.*")]</p>

<p>You can also try the random number approach- set _assemblyRevision = new Random(1000).Next(9999) will produce a random number between 1000 and 9999.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Roosa</title>
		<link>http://www.michaelhamrah.com/blog/2009/03/prevent-js-and-css-browser-caching-issues-with-aspnet/comment-page-1/#comment-84</link>
		<dc:creator>Mike Roosa</dc:creator>
		<pubDate>Wed, 11 Mar 2009 14:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=168#comment-84</guid>
		<description>&lt;p&gt;I have added this code to my project and it works great except that _assemblyRevision is always 0.  What do I need to do to have it generate the correct number?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have added this code to my project and it works great except that _assemblyRevision is always 0.  What do I need to do to have it generate the correct number?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ASP.NET MVC Archived Blog Posts, Page 1</title>
		<link>http://www.michaelhamrah.com/blog/2009/03/prevent-js-and-css-browser-caching-issues-with-aspnet/comment-page-1/#comment-76</link>
		<dc:creator>ASP.NET MVC Archived Blog Posts, Page 1</dc:creator>
		<pubDate>Fri, 06 Mar 2009 05:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=168#comment-76</guid>
		<description>&lt;p&gt;[...] to VotePrevent Js and Css Browser Caching Issues with ASP.NET (3/2/2009)Monday, March 02, 2009 from www.michaelhamrah.comYouâ€™ve seen this problem before- you deploy a new [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] to VotePrevent Js and Css Browser Caching Issues with ASP.NET (3/2/2009)Monday, March 02, 2009 from <a href="http://www.michaelhamrah.comYouâ€™ve" rel="nofollow">http://www.michaelhamrah.comYouâ€™ve</a> seen this problem before- you deploy a new [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.michaelhamrah.com/blog/2009/03/prevent-js-and-css-browser-caching-issues-with-aspnet/comment-page-1/#comment-75</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 03 Mar 2009 03:17:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=168#comment-75</guid>
		<description>&lt;p&gt;Oooh.. good point.  You can always switch the reflection call to a random number set in a static constructor- that way, the random will only be generated once per application initialization.  It&#039;s better than a timestamp, which wouldn&#039;t invalidate when you needed it too.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Oooh.. good point.  You can always switch the reflection call to a random number set in a static constructor- that way, the random will only be generated once per application initialization.  It&#8217;s better than a timestamp, which wouldn&#8217;t invalidate when you needed it too.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Chanty Sothy</title>
		<link>http://www.michaelhamrah.com/blog/2009/03/prevent-js-and-css-browser-caching-issues-with-aspnet/comment-page-1/#comment-74</link>
		<dc:creator>Chanty Sothy</dc:creator>
		<pubDate>Tue, 03 Mar 2009 02:59:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=168#comment-74</guid>
		<description>&lt;p&gt;Good solution, but It will not work in Medium Trust share hosting like godaddy, because this code using Reflection &quot;Assembly.GetExecutingAssembly()&quot;.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Good solution, but It will not work in Medium Trust share hosting like godaddy, because this code using Reflection &#8220;Assembly.GetExecutingAssembly()&#8221;.</p>

<p>Thanks</p>]]></content:encoded>
	</item>
</channel>
</rss>

