[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Coldfusion and HTTP Compression on IIS6?

Posted on 2004-11-08
2
Medium Priority
?
740 Views
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  :)
0
Comment
Question by:SmileMagician
2 Comments
 
LVL 7

Accepted Solution

by:
INSDivision6 earned 460 total points
ID: 12530011
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.
0
 
LVL 1

Author Comment

by:SmileMagician
ID: 12545756
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  :)
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
Suggested Courses
Course of the Month19 days, 17 hours left to enroll

873 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