IIS 6 Compression and App_Themes CSS
Hmmm. I finally got around to setting up static GZip compression on my server. I can't remember the reason why I didn't do this sooner, but today I was looking at some of my CSS files getting out of hand so I thought I better check into this again.
It's easy enough to do. MVP Omar Al Zabir has a nice post that summarizes how to set up IIS 6 for GZip compression which is quickly done by changing a few settings in Metabase.xml. IIS 6 basically writes out the content as compressed files to a sort of cache folder and then serves the compressed data directly from there (which incidentally might be a good approach for serving GZip content from ASP.NET more efficiently as well if you can cache the data).
Anyway it works without any fanfare, except it seems that none of the CSS content in any App_Themes folders are compression. Doing a quick search on App_Themes and IIS 6 compression turns up nothing.
On my site try the WebLog or the Web Store (checking with Fiddler or FireBug) both of which have App_Themes hosted CSS and both of which are not compressing. Yet on the home page the site style sheet (westwind.css) properly encodes.
It looks like there's something in the App_Themes folder foiling the compression (perhaps the long path name or the _). Here's what my compressed files folder looks like:

You can see all the files that have been compressed here. Notice there are NO App_Themes folder anywhere although there's about 10 ASP.NET apps running on my server.
Could anybody verify this behavior with their IIS 6 server by any chance?If you're running IIS 6 with static GZip compression can you check and see if App_Themes css files are getting compressed?
The Voices of Reason
# re: IIS 6 Compression and App_Themes CSS
# re: IIS 6 Compression and App_Themes CSS
But something is definitely keeping App_Themes from compressing.
# re: IIS 6 Compression and App_Themes CSS
# re: IIS 6 Compression and App_Themes CSS
I am working on themes in asp.net . I dont want to place my themes in the App_Themes folder instead I want my website to consume the themes from a diferent physical folder . Is that possible .
Warm Regards
# re: IIS 6 Compression and App_Themes CSS
Also, you might want to check out IISXpress, it's definitely helped me <a href="http://www.pdsys.org/blog/2007/05/16/HTTPCompressionJustDoIt.aspx">tame my HTTP compression woes</a>.