PHP Version
8.0
CodeIgniter4 Version
4.3
CodeIgniter4 Installation Method
Composer (as dependency to an existing project)
Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
No response
What happened?
Cache-Control and Pragma headers are included twice
Steps to Reproduce
Make a standard controller and return a string. Check the response headers.
Expected Output
Expected to only list each header once.
This is what I get though:
Cache-Control: no-store, no-cache, must-revalidate, no-store, max-age=0, no-cache
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Connection: Keep-Alive
Content-Encoding: gzip
Content-Length: 5969
Content-Type: text/html; charset=UTF-8
Date: Thu, 16 Feb 2023 18:37:48 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Pragma: no-cache
Server: Apache/2.4.18 (Ubuntu)
Set-Cookie: ......
Vary: Accept-Encoding
Perhaps it is ok to have duplicates in some circumstances. https://stackoverflow.com/questions/4371328/are-duplicate-http-response-headers-acceptable
I wouldn't think this would be ok:
Pragma: no-cache
Pragma: no-cache
Anything else?
No response
PHP Version
8.0
CodeIgniter4 Version
4.3
CodeIgniter4 Installation Method
Composer (as dependency to an existing project)
Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
No response
What happened?
Cache-Control and Pragma headers are included twice
Steps to Reproduce
Make a standard controller and return a string. Check the response headers.
Expected Output
Expected to only list each header once.
This is what I get though:
Perhaps it is ok to have duplicates in some circumstances. https://stackoverflow.com/questions/4371328/are-duplicate-http-response-headers-acceptable
I wouldn't think this would be ok:
Anything else?
No response