CFFLUSH not working


CF Flush is working on the express version.

However when I put it on a server it does not work. Just waits and loads the whole page. I am not using whitespace management or compression (gzip).

Anyone have any ideas?

General Info
Version	Lucee
Version Name	Velvet
Release date	Sep 1, 2017
ColdFusion® compatibility version	2016.0.03.300357
Configuration File	/opt/lucee/tomcat/lucee-server/context/lucee-server.xml
OS	Linux (4.9.43-17.39.amzn1.x86_64) 64bit
Servlet Container	Apache Tomcat/8.5.16
Java	1.8.0_144 (Oracle Corporation) 64bit
Architecture	64bit


Express doesn’t use a webserver like apache/nginx, so it’s probably something to do
with your webserver config, do you have gzip enabled?


ya so im not sure is that a setting in lucee or tomcat? i guess what i need help with is what is the right config settings for tomcat to allow for cfflush. thanks for the help. really appreciate it.


I don’t think it’s tomcat, like i said, i think it it’s something with your webserver config?

What webserver are you using?


running aws linux. used this guide to set up.




in dev tools, what does the content-encoding header say for the page which won’t flush?


GET /reports/test.cfm HTTP/1.1
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8,fr;q=0.6
Cookie: cfid=8dc98f59-31e4-4f8d-8d34-4ab208894aaa; cftoken=0; CFID=8dc98f59-31e4-4f8d-8d34-4ab208894aaa; CFTOKEN=0

Response headers are

HTTP/1.1 200
Set-Cookie: CFID=8dc98f59-31e4-4f8d-8d34-4ab208894aaa;Path=/
Set-Cookie: CFTOKEN=0;Path=/
connection: close
Content-Type: text/html;charset=UTF-8
Date: Tue, 10 Oct 2017 16:55:16 GMT


Got it working by using Nginx instead of Apache and adding this to the header. Nginx is smart enough to let the flush work when it sees the header.

cfheader name="X-Accel-Buffering" value="no"


thanks tor getting me thinking in the right direction.


so I just tried this on a pretty vanilla install from the installer on win10, updated to
Lucee, on win10 with Apache Tomcat/8.5.16 and Apache/2.4.27
and it works fine

<cfloop from="1" to="10" index="a">

i also just filed