Menu

compression of CFM pages (ColdFusion 5)

Help
2003-01-11
2003-01-19
  • Andrew McClymont

    I'm trying to get it to work with ColdFusion 5 pages.  Visiting www.pipeboost.com reports no compression active.
    Any idea?

    I'm using IIS 5 on a Win2000 Adv Server, running ColdFusion 5 PRO.

    Thanks in advance!
    -andy

     
    • Uli Margull

      Uli Margull - 2003-01-12

      Hi andy,

      at the moment, flatcompression only works when the Content-Length header is set in the header of the response. In ASP and ASP.Net (that I use mainly), this header is set & everything works fine.

      However, some (or rather many) web systems do not create a Content-Length header, but use chunking instead, which is not compressed by flatcompression at the moment.

      What you can do:
      - First check whether the response contains a Content-Length header or not. If it does, and still there is no compression, contact me again (this forum is ok)

      - If theres no Content-Length header (i.e. CF uses chunking mode), check whether you can enable the Content-Length header. This might have a performance penalty on the server.

      - Add chunking mode to the flatcompression filter by yourself (if you intent to add to the source code, contact me)

      - Wait till I come around to add chunking mode, which I probably will do before 2004.

      Thanks for your link to the pipeboost compression checker. This is quite usefull for testing - maybe I'll set up a service like this, too.

      Yours,

      Uli Margull

       
    • Werner Kielhausen

      Hi, I have the same problem with Coldfusion MX.
      The content-lenght attribute wasn`t send by the CF Server an so Filecompression didn't work.

      Maybe there is a way to set the content-lenght manually ( in applicatin.cfm ) with the cfheader tag.

      <CFHeader NAME="CONTENT-LENGTH" VALUE="#CGI.CONTENT_LENGTH#">

      But I can't try this at the moment.

      Werner

       
    • Andrew McClymont

      Hi Werner!
      I had already tried that, but analyzing the returned HTTP headers I get:
      CONTENT-LENGTH: 0

      Thanks for your help!
      -andy

       
    • Werner Kielhausen

      Hi Andy,

      yes this was a bad way and I think there is no chance to get CF work with Flatcompression until
      "chunking mode" is add.

      I found another free solution.
      Not an ISAPI Filter but it is working fine for me:

      http://devex.macromedia.com/developer/gallery/info.cfm?ID=8DAD8CBF-5B05-11D5-83F600508B94F380&method=Full

      Werner

       

Log in to post a comment.