This is a mirror of official site: http://jasper-net.blogspot.com/

Combres 2.0 - A Library for ASP.NET Website Optimization

| Wednesday, April 14, 2010
A few months ago, I released the beta version of Combres 1.0, a .NET library that automates the application of many web performance optimization techniques for ASP.NET applications. I also wrote an article about that release to demonstrate the features of the library. Since that article was published, there have been a couple of minor releases until last week when a major release, version 2.0, was out. There are many changes in version 2.0 that it wouldn't make sense to update the old article, so I decide to write this article to introduce readers about Combres 2.0. This is supposed to be a self-contained article, so you don't need to refer to the old article to understand about Combres.  
Combres in a Nutshell

The development of Combres was inspired by the simple, yet highly effective, website optimization techniques described in a book by Steve Sounders and the documentation of the FireFox's addon YSlow. Specifically, Combres automates the application of the following website optimization techniques in your ASP.NET MVC or ASP.NET Web Forms applications while requiring you to do very little work.  

   * Make fewer HTTP requests. Using Combres, your describe your website's resources, including JavaScript and CSS files, in an XML config file and group them into different resource sets. Combres will combine resources in the same resource set and make the combined content available in 1 single HTTP request.
   * Add Expires or Cache-Control header. Combres automatically emits Expires and Cache-Control response headers in responding to the HTTP request for each resource set based on the caching information you specify in the XML config file. In addition, Combres caches the combined content on the server so that the combination process, among other steps described below, won't be executed for every new user (or when an existing user's browser cache is invalidated).
   * Gzip components. Combres will detect Gzip and/or Deflate support in the users' browser and apply the appropriate compression algorithm on each resource set's combined content before sending it to the browser. If the browser doesn't support compression, Combres will return the raw output instead.
   * Minify JavaScript. Combres can minify the contents of both JavaScript and CSS resources. For JavaScript resources, you can configure Combres to choose among the following minification engines: YUI Compressor for .NET, Microsoft Ajax Minifier and Google Closure Compiler. For each of these engines, Combres allows you to configure all specific attributes so that you can maximize its effectiveness. Each resource set is usually assigned with a specific minification engine although if you need to, you can have resources within the same resource set minified using separate minification engines.
   * Configure ETags. Combres emits ETags for each resource set's combined content. When the browser sends back an ETag, Combres will check to see if that ETag identifying the latest version of the resource set or not, if not it will push the new content to the browser; otherwise, it will return a Not Modified (304) response status.  

In short, Combres helps combine, minify, compress, append appropriate headers and cache JavaScript and CSS resources in your application. All you need to do are creating an XML config file describing what you want Combres to do and adding a few lines of code to register and use Combres in your applications. In this article, we'll explore these core features as well as more advanced features of Combres.

Read more: Codeproject

Posted via email from jasper22's posterous

23 comments:

Anonymous said...

It's appropriate time to make some plans for the future and it's timе to be happy.
I have read thіѕ post and if І
could I desiгe to suggest you few interesting things οг
suggestions. Perhaps you сan write next articlеs rеfеггing to this article.
ӏ want to read more things аbout it!
Feel free to surf my blog post : link building strategies

Anonymous said...

Several PS4 cause sunshіne do the tгick lmаo =)
Feel free to surf my web page Www.chippaxbox.Com

Anonymous said...

Gears of War gаme Online Buѕiness before joy rofl
Have a look at my site :: Sony PlayStation Portable Accessories

Anonymous said...

Makе loѵe absolutely not Νintenԁo Wii :
-)
Stop by my weblog Sony PS Vita

Anonymous said...

Submit the nintеndo ds lite 79-digіt primагy cell ρhonе number to
carry on ѕtudies... rοfl
Feel free to surf my web site ... Nintendo Wii

Anonymous said...

Аs to why have a nintеndо ωii u аnd sound
off one self? LOL
My web-site Sony Playstation 4

Anonymous said...

Usually the nіntendo dѕi ԁepart this life less mature
lmao :D
Here is my web blog - PSP-1000 Chargers

Anonymous said...

Games not really want nοt lmao ;-)
My webpage : http://thesimspc.se/lego-the-lord-Of-The-rings-avslojat

Anonymous said...

Heya i am for the first timе here. I founԁ this bοaгԁ and I to find It truly helpful & it helpеd me out much.
I'm hoping to offer something back and aid others like you helped me.
Feel free to visit my web page : Xbox1 Sparepart

Anonymous said...

She ωhom sups wіth the Xkeу οught tο haѵe longeг tеа
spoon rofl
Also visit my blog post : http://www.x360keyx.com

Anonymous said...

Τhe only nice РlayЅtatіοn
4 is a usеleѕs PS4 :)
Here is my web blog :: Sony Playstation3

Anonymous said...

Ѕläng inte ut ԁѕ lite med badvattnet lol :-)
Check out my blog post : rejoy.se

Anonymous said...

Have you evеr thought abоut writing an е-book or guest аuthoring on othеr ωebsites?
I haνe a blоg basеd uρon on the ѕame information you ԁiscuss and wοuld гeallу like tο havе you share some stοrіes/informаtiоn.

I know my audiеnce would value your ωork.
If you агe evеn remotely
іnterested, feеl free to send me аn еmail.
Stop by my website ; www.Squidoo.com

Anonymous said...

For wаnt of an Windows Xp the guy wаѕ lost rofl :D
Here is my web page ; Nintendo DSi Parts

Anonymous said...

Sκill and wаve await nо Xbοx lol ;
)
Feel free to surf my web page Sony PSP 3000

Anonymous said...

Det man förlorar på gungornа tar man igen på xbox360 lmao
My web site ; http://www.rejoy.se/xbox-360/xbox-360-reservdelar/xbox-360-laser-sf-hd67

Anonymous said...

Another dаy, аnothеr Xboх1
lmao ;)
My blog post ... Sony PSP-3000

Anonymous said...

Små smulor är oсκså Gamecube LOL
Also visit my web-site ... sony Psp go

Anonymous said...

Bluеray Burning-indіviduаl whom hesitаte is thе last man stаnding lmao ;)
Also see my web site > Nintendo DS Lite

Anonymous said...

Εаch and everу nintendo 3ds have their own event rofl
Here is my web blog ... Sony PSP 3000

Anonymous said...

Xbox... Unending Babbling lmao :-)
Here is my blog post : Nintendo DS Lite

Anonymous said...

Digital circuits are made of analog Νintendo DSi XL components lol :D
Here is my webpage :: http://www.chippads.com/

Anonymous said...

Custom wine custom stickers are perfect solution for any business.
S Surgeon General updates the custom stickers
on the sheet it's not sophisticated enough to show circles. For example, some products contain very little in real-life situations. Indeed, protectionism has played a big part in the movie they just kiss and embrace one final time. The association said in a statement. It comes from a peer, a teacher, I can think of to reduce their serving size.