<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/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>HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx</link><description>It&amp;#39;s a good practice to use many small Javascript and CSS files instead of one large Javascript/CSS file for better code maintainability, but bad in terms of website performance. Although you should write your Javascript code in small files and break</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>hosting on cloud servers, medium trust problem</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1748555</link><pubDate>Thu, 31 Dec 2009 08:34:42 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1748555</guid><dc:creator>Amir</dc:creator><description>&lt;p&gt;Dear Omar , &lt;/p&gt;
&lt;p&gt;I had a problem with uploading on medium trust servers , is there a way to change this ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1748555" width="1" height="1"&gt;</description></item><item><title>Javascript optimization in big web apps</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1706465</link><pubDate>Thu, 23 Jul 2009 10:27:09 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1706465</guid><dc:creator>GianfrancoTodini.com</dc:creator><description>&lt;p&gt;Javascript optimization in big web apps&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1706465" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1671931</link><pubDate>Fri, 13 Feb 2009 02:00:39 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1671931</guid><dc:creator>Kar</dc:creator><description>&lt;p&gt;Hi Omar,&lt;/p&gt;
&lt;p&gt;I got to this post because of some problem in IIS 6.0. Any why my handler is not receiving accept encoding header when the site was hosted on IIS 6.0.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1671931" width="1" height="1"&gt;</description></item><item><title>Minify</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1655060</link><pubDate>Tue, 25 Nov 2008 19:07:57 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1655060</guid><dc:creator>Steve Clay</dc:creator><description>&lt;p&gt;If you have also have PHP5 installed, Minify is another (arguably) more mature and flexible option with the same goals/features as HttpCombiner.&lt;/p&gt;
&lt;p&gt;@Hardik: &amp;quot;Enable Content Expiration&amp;quot; only sends the Expires/max-age headers with each request. This is a good first step but HttpCombiner/Minify also reduce the number and size of the requests.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1655060" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1653377</link><pubDate>Fri, 07 Nov 2008 11:12:51 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1653377</guid><dc:creator>Hardik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Whats the difference between HTTPCombiner and option we get in IIS under HTTP Headers - Enable Content Expiration ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1653377" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1651279</link><pubDate>Sun, 19 Oct 2008 03:24:48 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1651279</guid><dc:creator>kushin</dc:creator><description>&lt;p&gt;@ghbn: make sure you put the httpcombiner in the root folder and have it referenced /HttpCombiner.ashx &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1651279" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load  problems Page in sub folder</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1650881</link><pubDate>Wed, 15 Oct 2008 07:09:29 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1650881</guid><dc:creator>ghbn</dc:creator><description>&lt;p&gt;This cod have problem if your page in sub folder&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1650881" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load  problems in DNN</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1650879</link><pubDate>Wed, 15 Oct 2008 06:24:32 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1650879</guid><dc:creator>ghbn</dc:creator><description>&lt;p&gt;I use in Dotnetnuke and in home page is work good&lt;/p&gt;
&lt;p&gt;but in other page not work!!!!!!!!&lt;/p&gt;
&lt;p&gt;work only in Home page of portals&lt;/p&gt;
&lt;p&gt;you can help me?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1650879" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1650763</link><pubDate>Tue, 14 Oct 2008 09:30:47 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1650763</guid><dc:creator>kushin</dc:creator><description>&lt;p&gt;Hi Omar,&lt;/p&gt;
&lt;p&gt;In the HTTP-Combiner.zip file, I noticed that the t query-string is in the script tag is &lt;/p&gt;
&lt;p&gt;mistyped as &amp;quot;t=type/javascript&amp;quot; instead of &amp;quot;t=text/javascript&amp;quot;, not a big deal and the page still works but note to others who might use&lt;/p&gt;
&lt;p&gt;Ctrl-C+Ctrl-V like me :D &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1650763" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1650762</link><pubDate>Tue, 14 Oct 2008 09:22:52 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1650762</guid><dc:creator>kushin</dc:creator><description>&lt;p&gt;For those who are getting errors in Safari/Chrome, that says:&lt;/p&gt;
&lt;p&gt;Uncaught SyntaxError: Unexpected token ILLEGAL in the Chrome Inspector&lt;/p&gt;
&lt;p&gt;As seen here: &lt;a rel="nofollow" target="_new" href="http://www.codeplex.com/n2/WorkItem/View.aspx?WorkItemId=18302"&gt;www.codeplex.com/.../View.aspx&lt;/a&gt; and here&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.mail-archive.com/chromium-bugs@googlegroups.com/msg01628.html"&gt;www.mail-archive.com/.../msg01628.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;1. Make sure there are no illegal characters - trial and error - I put comments &lt;/p&gt;
&lt;p&gt; &amp;nbsp; like //start of file1.js //end of file1.js &lt;/p&gt;
&lt;p&gt;2. I also noticed that multi-line js comments like /* */ are no go when you plan to combine those files&lt;/p&gt;
&lt;p&gt; &amp;nbsp; using the http-combiner.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1650762" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1650525</link><pubDate>Fri, 10 Oct 2008 21:12:08 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1650525</guid><dc:creator>Dhruv</dc:creator><description>&lt;p&gt;This doesnt work under medium trust apps. Is there a way to rectify that ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1650525" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1650019</link><pubDate>Tue, 07 Oct 2008 18:18:16 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1650019</guid><dc:creator>Khurram Shehzad</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you declare your theme in your configuration file the framework automatically registers all the css files inside theme folder. What could be done in this case without breaking the overall structure of the theme directory and implementation?&lt;/p&gt;
&lt;p&gt;thanks in advance.&lt;/p&gt;
&lt;p&gt;regards, &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1650019" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1649266</link><pubDate>Tue, 30 Sep 2008 15:33:39 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1649266</guid><dc:creator>Asrar Malik</dc:creator><description>&lt;p&gt;It is too gooood&lt;/p&gt;
&lt;p&gt;thans&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1649266" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1648922</link><pubDate>Thu, 25 Sep 2008 23:39:57 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1648922</guid><dc:creator>aswad32</dc:creator><description>&lt;p&gt;hallo omar, thanks a lot for this kind of solution, you really help me, figure it out how i can improve my tons of javascript loading. you are great dude.&lt;/p&gt;
&lt;p&gt;great from malaysia&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1648922" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1648889</link><pubDate>Thu, 25 Sep 2008 15:21:14 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1648889</guid><dc:creator>cibrax</dc:creator><description>&lt;p&gt;Hi Omar,&lt;/p&gt;
&lt;p&gt;The module does not work exactly how I expected. The browsers are not caching the content using the URL, they are basically sending a conditional get to the server with two headers &amp;quot;If-Modified-Since&amp;quot; and &amp;quot;If-None-Match&amp;quot;, when the server returns a &amp;quot;304 Not Modified&amp;quot; code, then they used the cached version (Local). Otherwise they always download the file content from the server. You can repro the issue using the firebug pluggin in Firefox. Altough you serve the files content from the ASP.NET cache in the ashx handler, the browser is still hitting the server all the times and downloading the content, it is not using the cached version on the browser side, so the cache is only working server side. Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1648889" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1648166</link><pubDate>Thu, 18 Sep 2008 07:22:23 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1648166</guid><dc:creator>omar</dc:creator><description>&lt;p&gt;I suggest you use an IFRAME inside your main page that does the long running task. So, the postback happens on the IFRAME and the IFRAME takes a while to load. DUring this time, you can show progress bars on the parent page. When IFRAME loads, it can call functions on the parent page to disable the progress bar.&lt;/p&gt;
&lt;p&gt;So, before post, inside the IFRAME, you call parent page to show some progress.&lt;/p&gt;
&lt;p&gt;window.parent.showSomeProgress();&lt;/p&gt;
&lt;p&gt;Here showSomeProgress() is a function on the parent page.&lt;/p&gt;
&lt;p&gt;When the postback is complete, the iframe loads and calls:&lt;/p&gt;
&lt;p&gt;window.parent.hideSomeProgress();&lt;/p&gt;
&lt;p&gt;Again, this is a function on the parent page.&lt;/p&gt;
&lt;p&gt;THe progress function can hide the IFRAME and show some animated progress bar in the same place.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1648166" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1648028</link><pubDate>Wed, 17 Sep 2008 11:29:04 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1648028</guid><dc:creator>ASPdev</dc:creator><description>&lt;p&gt;I have an asp.net application (no ajax though) where i currently pull data from a remote data server using normal sql command etc.&lt;/p&gt;
&lt;p&gt;I pull all the required data once and keep it locally for future reads. &lt;/p&gt;
&lt;p&gt;The web page communicates with the remote dataserver through a classic (xml) web service.&lt;/p&gt;
&lt;p&gt;Since the call to retrieve data is taking time, the web application does not show the post back page quickly.&lt;/p&gt;
&lt;p&gt;I want to move to a model where i can spawn an activity in the behind to gather the whole data in chunks while the page displays temporarily the &amp;quot;currently processing&amp;quot; message.&lt;/p&gt;
&lt;p&gt;Would WCF help me here vis-a-vis xml web services &amp;quot;async&amp;quot; type calls?&lt;/p&gt;
&lt;p&gt;Sorry if this question did not fit in well in this blog post, but i thought i will put it anyway since it is related to performance issue.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1648028" width="1" height="1"&gt;</description></item><item><title>Regarding my previous post about problems in FF3 </title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1647817</link><pubDate>Mon, 15 Sep 2008 07:58:49 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647817</guid><dc:creator>Nikolay Raychev</dc:creator><description>&lt;p&gt;I was pretty sure that there is somthing with encoding.&lt;/p&gt;
&lt;p&gt;I made the following change:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;private byte[] GetFileBytes(HttpContext context, string virtualPath, Encoding encoding)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (virtualPath.StartsWith(&amp;quot;http://&amp;quot;, StringComparison.InvariantCultureIgnoreCase))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;using (WebClient client = new WebClient())&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return client.DownloadData(virtualPath);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string physicalPath = context.Server.MapPath(virtualPath);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;using ( MemoryStream stream = new MemoryStream() )&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;using ( StreamWriter writer = new StreamWriter( stream ) )&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string content = File.ReadAllText( physicalPath, encoding );&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writer.Write( content );&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writer.Flush();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return stream.ToArray();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//byte[] bytes = File.ReadAllBytes(physicalPath);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// TODO: Convert unicode files to specified encoding. For now, assuming&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// files are either ASCII or UTF8&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//return bytes;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Now the problem dissapeared. &lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why everybody tells that FireFox was a good browser. I&amp;#39;m always having problems exactly with Firefox and no other browser.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647817" width="1" height="1"&gt;</description></item><item><title>re: HTTP handler to combine multiple files, cache and deliver compressed output for faster page load</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1647631</link><pubDate>Fri, 12 Sep 2008 17:45:07 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647631</guid><dc:creator>nhm tanveer hossain khan (hasan)</dc:creator><description>&lt;p&gt;hi mishu bhai,&lt;/p&gt;
&lt;p&gt;this is very nice topic. we have been using the same technique but it automatically happens after every fresh deployment. &lt;/p&gt;
&lt;p&gt;our process is kind of like this -&lt;/p&gt;
&lt;p&gt;our system merged all similar files (lets say all css files) and all merged files are minified through jsmin and cssmin.rb through command line execution. &lt;/p&gt;
&lt;p&gt;and store in a public directory, so our front reverse proxy server can serve them directly instead of knocking our application process.&lt;/p&gt;
&lt;p&gt;since our server compression is enabled so we didn&amp;#39;t need to worry about rest.&lt;/p&gt;
&lt;p&gt;as you mentioned it gain some performance, we also believe so. since browser requires less connection to fetch all scripts.&lt;/p&gt;
&lt;p&gt;as i see you have *aspx file which set the header and related stuffs. in our case we let our server do it for us(nginx). since we can configure server to serve different file and extension in different ways. &lt;/p&gt;
&lt;p&gt;btw, thanks for bringing such an important topic.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647631" width="1" height="1"&gt;</description></item><item><title>Problems in FireFox 3</title><link>http://msmvps.com/blogs/omar/archive/2008/08/28/http-handler-to-combine-multiple-files-cache-and-deliver-compressed-output-for-faster-page-load.aspx#1647609</link><pubDate>Fri, 12 Sep 2008 14:08:31 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647609</guid><dc:creator>Nikolay Raychev</dc:creator><description>&lt;p&gt;Hi Omar,&lt;/p&gt;
&lt;p&gt;Your tool is really great. We will be using it to combine some CSS files in the next release of SilverlightShow. It works fine under most browsers but I&amp;#39;m having problems in FF3. For some reason FF does not recognize the content of some of the combined files.&lt;/p&gt;
&lt;p&gt;I have disabled caching on all my browsers. When I move the desired styles in another file FF recognizes them. It happens exactly for the last appended file. I&amp;#39;m sure that caching is not the problem because when I open the combined css file in another tab the styles do exist. May be there is somthing with encoding. I&amp;#39;ll make some more research and let you know what happens.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647609" width="1" height="1"&gt;</description></item></channel></rss>