Coldfusion and HTTP Compression on IIS6?

Posted on 2004-11-08
Last Modified: 2013-12-24
I just asked my web host to enable HTTP Compression (running IIS6)...  The few .htm files I have became super optimized. (Almost 70% smaller!)  I wasn't aware that it wouldn't affect .cfm files though.  Is there anything I can do about that?  That would be amazing if I could get all the coldfusion pages optimized that highly...   Thank you!

SmileMagician  :)
Question by:SmileMagician
    LVL 7

    Accepted Solution

    If compression is enabled for .cfm files, they will be compressed by IIS, when CF dumps results to a compression-enabled browser.
    To enable compression see MSDN docs (extract is below):

    Edit the Metabase
    WARNING: If you edit the metabase incorrectly, you can cause serious problems that may require you to reinstall any product that uses the metabase. Microsoft cannot guarantee that problems that result if you incorrectly edit the metabase can be solved. Edit the metabase at your own risk.

    NOTE: Always back up the metabase before you edit it.

    To enable IIS 5.0 to compress .aspx (.CFM) pages, follow these steps:
    Open a command prompt.
    Type net stop iisadmin, and then press ENTER.
    Type cd C:\InetPub\adminscripts, and then press ENTER.
    Type the following, and then press ENTER:
    CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/GZIP/HcScriptFileExtensions "asp" "dll" "exe" "aspx"  "CFM"

    Type the following, and then press ENTER:
    CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/DEFLATE/HcScriptFileExtensions "asp" "dll" "exe" "aspx" "CFM"

    Type net start w3svc, and then press ENTER.
    LVL 1

    Author Comment

    Thank you very much!  That was exactly what I needed.  I just wasn't aware we had to actually set the extensions to be compressed...

    SmileMagician  :)

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
    One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
    The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
    The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: : Click on Too…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now