Issue:
When “<add name="Cache-Control“ is added added in IIS web.config under the customHeader element it caused specific pages not to display (possibly a differences in the request packet IIS sends to Lucee).
Attempts to narrow down the cause:
I had try trial and error scenarios to determine if the problem was cause by having an invalid Cache-Control value (which I determined was not the case), the follow are the tests and their results:
Change
Restored the cause of the error
…
Reason
I needed to reproduce the errors for myself
Result
Errors appeared as expected
Change
Added above the <add …
Reason
Checked if removing Lucee cache control header first before adding header via web.config would discount IIS as the cause of the problem, by making the cache control value correct on every page
Result
The issue occurred here as well
Change
Added outbound rule to replace the removed <add … for cache control
Reason
Checked if IIS setting cache control could cause the same issue
Result
Issue didn’t occur
Change
Removes all settings for the cache control header from web.config and Lucee
Reason
Checked if having no cache control header at all caused the issue too.
Result
Issue didn’t occur
Change
Removed every mention of cache control cfheader from lucee and added <add … again
Reason
Checked if when the header value is set correctly the for all pages using IIS <add … the issue won’t occur
Result
Issue occurred again
The above finding tell me that only when using the <add … does the difference occur, with outboundRule for setting this header the error doesn’t occur. So, I hypothesize the <add … either causes IIS to either send a different request header value or it causes a server side difference that Coldfusion could compensate for but Lucee couldn’t.
Currently checking the request headers to determine the differences that may/not cause the error to occur, I will add some code to intercept and log the request header provided by IIS to Lucee, I will also check the IIS logs.
OS: Windows Server 2019
Java Version: Java Zulu 11
Tomcat Version: Tomcat 9
Lucee Version: 5.3.6.61
IIS: version 7