How to enable gzip compression on coldfusion at the directory level?

I support an outdated application on ColdFusion 7, and the pages are full of painful amounts of spaces that I would like gzip off.

I know that I can:

  • manually compress everything in the index type file ( link )
  • include it in web.xml (to which I do not have access)

But can I just throw away the right <cfheader> or something similar to the .htaccess that runs gzipping in this directory?

+3
source share
2 answers

. - (apache 1.3 mod_gzip mod_deflate, IIS_6, IIS_7) (coldfusion ).

, .

:

  • cf.
  • < cfsetting enablecfoutputonly = "" / > .
  • < cfprocessingdirective  suppressWhiteSpace = "" > </cfprocessingdirective>
  • <cfsilent> </cfsilent>
+6

, CF- GZIP, IIRC, - ( ) -. , - (IIS Apache).

, , . .

, . CFC ( - , ), CFSilent , .

+1

Source: https://habr.com/ru/post/1761371/


All Articles