<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8068558919332176522</id><updated>2024-09-09T20:50:19.184-07:00</updated><title type='text'>Vikrant Sonawale</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vikrantsonawale.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8068558919332176522/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vikrantsonawale.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>vikrant sonawale</name><uri>http://www.blogger.com/profile/08824698400613970839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8068558919332176522.post-7095145801755824519</id><published>2012-05-11T00:07:00.002-07:00</published><updated>2012-05-11T04:42:25.416-07:00</updated><title type='text'>HTTP Compression in ASP.NET</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
HTTP compression is used to compress contents from a Web server. Images used in the website are not in compressed format.&lt;br /&gt;
&lt;br /&gt;
Statis HTML content contains only plain text and it is easy to compress.&lt;br /&gt;
&lt;br /&gt;
There are mainly two types of compression&lt;br /&gt;
&lt;br /&gt;
1)&lt;b&gt;Gzip Compression:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Gzip Compression is used on files which contains dynamic data eg .aspx,.asp etc.&lt;br /&gt;
&lt;br /&gt;
2)&lt;b&gt;Static Compression:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Static compression is used on files such as .html,.htm,.txt,.doc which cannot be change frequently.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow below steps :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2 class=&quot;western&quot; style=&quot;border-bottom: 1px solid #000000; border-left: none; border-right: none; border-top: none; padding-bottom: 0.01in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;







HTTP Compression in IIS 6&lt;/h2&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
1. Enable web site compression in IIS.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
a. Right-click the
web sites folder, then select the Service tab.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
b. Activate the
compress application files checkbox.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
c. Activate the
compress static files checkbox.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
d. Limit the
maximum temporary directory size to the default value.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
2. Add gzip.dll to Web Service
Extensions in IIS.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
a. Left-click the
web service extensions folder.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
b. In the right
pane, click the link to add a new web service extension.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
c. Enter something
like “HttpCompression” for the extension name.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
d. Click Add, then
browse to C:\Windows\System32\inetsrv.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
e. Find and select
gzip.dll and click Open.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
f. Activate the set
extension status to allowed checkbox and click OK.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
3. Edit Metabase.xml file can be found
in the directory 
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
C:\Windows\System32\Inetsrv\Metabase.xml&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
4. Edit below code to&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&amp;lt;IIsCompressionScheme Location
=&quot;/LM/W3SVC/Filters/Compression/deflate&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcCompressionDll=&quot;%windir%\system32\inetsrv\gzip.dll&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcCreateFlags=&quot;0&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcDoDynamicCompression=&quot;TRUE&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcDoOnDemandCompression=&quot;TRUE&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcDoStaticCompression=&quot;FALSE&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcDynamicCompressionLevel=&quot;0&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcFileExtensions=&quot;htm&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
html&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
txt&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcOnDemandCompLevel=&quot;10&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcPriority=&quot;1&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcScriptFileExtensions=&quot;asp&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
dll&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
exe&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&amp;gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&amp;lt;/IIsCompressionScheme&amp;gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&amp;lt;IIsCompressionScheme Location
=&quot;/LM/W3SVC/Filters/Compression/gzip&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcCompressionDll=&quot;%windir%\system32\inetsrv\gzip.dll&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcCreateFlags=&quot;1&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcDoDynamicCompression=&quot;TRUE&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcDoOnDemandCompression=&quot;TRUE&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcDoStaticCompression=&quot;TRUE&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcDynamicCompressionLevel=&quot;0&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcFileExtensions=&quot;htm&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
html&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
txt&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcOnDemandCompLevel=&quot;10&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcPriority=&quot;1&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
HcScriptFileExtensions=&quot;asp&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
dll&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
exe&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&amp;gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&amp;lt;/IIsCompressionScheme&amp;gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
In HcScriptFileExtensions add .aspx
file 
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
In HcFileExtensions add .js and .css&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
5. Restart IIS&lt;br /&gt;
&lt;br /&gt;
It&#39;s that easy to enable compression of Web pages, JavaScript, CSS &lt;i&gt;&lt;/i&gt;. I hope you find this code as useful as I have. &lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vikrantsonawale.blogspot.com/feeds/7095145801755824519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vikrantsonawale.blogspot.com/2012/05/enable-http-compression-for-your-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8068558919332176522/posts/default/7095145801755824519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8068558919332176522/posts/default/7095145801755824519'/><link rel='alternate' type='text/html' href='http://vikrantsonawale.blogspot.com/2012/05/enable-http-compression-for-your-aspnet.html' title='HTTP Compression in ASP.NET'/><author><name>vikrant sonawale</name><uri>http://www.blogger.com/profile/08824698400613970839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8068558919332176522.post-2520846862131356704</id><published>2012-04-30T04:15:00.001-07:00</published><updated>2012-05-11T04:30:49.231-07:00</updated><title type='text'>Hello world!!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: trebuchet ms;&quot;&gt;I am working as a software engineer in Hinduja Interactive, after some time,&amp;nbsp; I finally get the time to start blogging about the technology i used.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: trebuchet ms;&quot;&gt;Here
i will share my thoughts on technology and software. I will start with Microsoft technologies like .NET 
or SharePoint.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: trebuchet ms;&quot;&gt;&lt;br /&gt;I hope you find these interesting…&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vikrantsonawale.blogspot.com/feeds/2520846862131356704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vikrantsonawale.blogspot.com/2012/04/hello-world.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8068558919332176522/posts/default/2520846862131356704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8068558919332176522/posts/default/2520846862131356704'/><link rel='alternate' type='text/html' href='http://vikrantsonawale.blogspot.com/2012/04/hello-world.html' title='Hello world!!'/><author><name>vikrant sonawale</name><uri>http://www.blogger.com/profile/08824698400613970839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>