Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Peter Boughton / Peter Boughton (Peter Boughton)
Created: 01/23/2015
Components: Language
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: ALL / Windows 7
Vote Count: 0
A simple request with no cfcontent/cfheaders involved is returning this:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: no-cache, no-store, must-revalidate, max-age=0
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 23 Jan 2015 12:03:12 GMT
The Cache-Control, Pragma, and first Expires header should not be there. There is no CFML code adding them. (The page is being requested, not refreshed nor force refreshed.)
Setting an Expires header manually is appending to the existing incorrect header, for example:
<cfheader name="Expires" value=#getHttpTimeString(Now()+10)# />
<cfoutput>#Now()#</cfoutput>
<cfsetting showdebugoutput=false />
Results in this response:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: no-cache, no-store, must-revalidate, max-age=0
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Expires: Mon, 02 Feb 2015 12:03:41 GMT
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 23 Jan 2015 12:03:41 GMT
The Cache-Control, Pragma, and first Expires header should not be there. There is no CFML code adding them.
This occurs when going via Tomcat's Coyote web server, but going via IIS results in the same behaviour.
This is happening in all browsers, and can be confirmed as not a browser issue by sending a manual HTTP request (e.g. using PuTTY)...
Using this code:
<cfdump var=#getHttpRequestData().headers# format=text />
<cfsetting showdebugoutput=false />
Then connecting to 127.0.0.1:8500 and sending this HTTP request:
GET /test_expires.cfm HTTP/1.1
Host: localhost
Results in the response:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=35BF5B5408B900B856D25B95F69F8161.cfusion; Path=/; HttpOnly
Cache-Control: no-cache, no-store, must-revalidate, max-age=0
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 23 Jan 2015 12:05:16 GMT
2c
<pre>struct
host: localhost
</pre>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3926479
External Customer Info:
External Company:
External Customer Name: Peter
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: