Author: Steven Neiland
Published:

Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.

Step 4: Edit the Metabase xml

Now we have the file backed up we need to edit the section in it dealing with the compression scheme.

  1. Open the metabase xml in Notepad. Do not use other editors such as word as they will insert hiden characters which will corrupt the file.
  2. Run the find command using "IIsCompressionScheme"
  3. This returns a match which looks like this: "
  4. Here we see two nodes named "IIsCompressionScheme" and one node named "IIsCompressionSchemes" plural.
  5. Delete these nodes and replace them with the code below
<IIsCompressionScheme      Location ="/LM/W3SVC/Filters/Compression/deflate"
            HcCompressionDll="%windir%system32inetsrvgzip.dll"
            HcCreateFlags="0"
            HcDoDynamicCompression="TRUE"
            HcDoOnDemandCompression="TRUE"
            HcDoStaticCompression="TRUE"
            HcDynamicCompressionLevel="9"
            HcFileExtensions="htm
                  html
                  xml
                  css
                  txt
                  rdf
                  js"

            HcOnDemandCompLevel="9"
            HcPriority="1"
            HcScriptFileExtensions="aspx
                  asmx
                  asbx
                  ashx
                  axd
                  php"

      >

</IIsCompressionScheme>
<IIsCompressionScheme      Location ="/LM/W3SVC/Filters/Compression/gzip"
            HcCompressionDll="%windir%system32inetsrvgzip.dll"
            HcCreateFlags="1"
            HcDoDynamicCompression="TRUE"
            HcDoOnDemandCompression="TRUE"
            HcDoStaticCompression="TRUE"
            HcDynamicCompressionLevel="9"
            HcFileExtensions="htm
                  html
                  xml
                  css
                  txt
                  rdf
                  js"

            HcOnDemandCompLevel="9"
            HcPriority="1"
            HcScriptFileExtensions="aspx
                  asmx
                  asbx
                  ashx
                  axd
                  php"

      >

</IIsCompressionScheme>
<IIsCompressionSchemes      Location ="/LM/W3SVC/Filters/Compression/Parameters"
            HcCacheControlHeader="max-age=86400"
            HcCompressionBufferSize="8192"
            HcCompressionDirectory="%windir%IIS Temporary Compressed Files"
            HcDoDiskSpaceLimiting="FALSE"
            HcDoDynamicCompression="TRUE"
            HcDoOnDemandCompression="TRUE"
            HcDoStaticCompression="TRUE"
            HcExpiresHeader="Wed, 01 Jan 1997 12:00:00 GMT"
            HcFilesDeletedPerDiskFree="256"
            HcIoBufferSize="8192"
            HcMaxDiskSpaceUsage="99614720"
            HcMaxQueueLength="1000"
            HcMinFileSizeForComp="1"
            HcNoCompressionForHttp10="TRUE"
            HcNoCompressionForProxies="TRUE"
            HcNoCompressionForRange="FALSE"
            HcSendCacheHeaders="FALSE"
      >

</IIsCompressionSchemes>
1 2 3

Related Blog Postings

What Do You Think?

Reader Comments

Post a Comment

Comment Etiquette:

  • Please keep comments on-topic.
  • Please do not post unrelated questions or large chunks of code.
  • Please do not engage in flaming/abusive behaviour.
  • Comments that contain or appear to be advertisments, will not be published.
  • Comments that appear to be created for the purpose of linkbuilding to commercial sites will be removed.

We are all adults here so play nice.

*
*



Archives Blog Listing

Tag Listing

Learn CF In A Week

Treehouse

 
Fork me on GitHub