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?
Version Lucee 188.8.131.52
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
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?
in dev tools, what does the content-encoding header say for the page which won’t flush?
GET /reports/test.cfm HTTP/1.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-Encoding: gzip, deflate
Cookie: cfid=8dc98f59-31e4-4f8d-8d34-4ab208894aaa; cftoken=0; CFID=8dc98f59-31e4-4f8d-8d34-4ab208894aaa; CFTOKEN=0
Response headers are
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 184.108.40.206-SNAPSHOT, 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 https://luceeserver.atlassian.net/browse/LDEV-1545
Have the same issue but CFFLUSH isn’t working.
I do see GZIP in the resultant header.
Instead of flushing, the code comes through after 10 seconds:—
<cfloop condition="cycle lte 100">
Vanilla Lucee install on top of VirtualMin on a fresh Ubuntu EC2 instance.
UPDATE: It was working, but not behind a VPN.
Are you using Apache or nginx?
As there are a couple of caching mechanisms all baked into apache that maybe causing the issue
Thanks, Terry_Whitney! It was working but for some reason my VPN was interfering and making it look like it flushing wasn’t working.