I’m supporting a legacy application on ColdFusion 7, and the pages are full of painful amounts of whitespace that I’d like to gzip away.
I know I can:
- manually compress everything in an index type file (reference)
- enable it in the web.xml (which I don’t have access to)
But can I just throw the right < cfheader > or something akin to a .htaccess that triggers gzipping on this directory?
There are two ways to implement compression. At the web server level (apache 1.3 with mod_gzip or mod_deflate, IIS_6, IIS_7) or the application server level (coldfusion via a servlet filter).
I’m afraid those are the only options available to you for compression.
Otherwise you’ll be looking at one or more of these:
cf administrator.
enablecfoutputonly=”true”/> where
possible.
<cfprocessingdirective
suppressWhiteSpace=”yes”></cfprocessingdirective>