I'm facing an issue while attempting to develop a caching middleware within Slim 4.11. It appears that regardless of whether I'm using the withHeader or withAddedHeader methods, there might be a conflict resulting in header overwriting. Please notice that the Allow header is actually passed through. Could anyone provide insights into potential factors causing this header overwrite problem?
I found the issue from Slim Skeleton app in src/Application/ResponseEmitter/ResponseEmitter.php which was still in our project. This overrides cache headers.
I'm facing an issue while attempting to develop a caching middleware within Slim 4.11. It appears that regardless of whether I'm using the
withHeader
orwithAddedHeader
methods, there might be a conflict resulting in header overwriting. Please notice that theAllow
header is actually passed through. Could anyone provide insights into potential factors causing this header overwrite problem?Response:
Using: