Page 1 of 1

Suggestion about HTTP headers

Posted: 26 Oct 2022, 07:30
by plamen
Could you please remove the following from the code:

Code: Select all

header('Cache-Control: pre-check=0, post-check=0, max-age=0');
header("Pragma: no-cache");

Code: Select all

pre-check=0, post-check=0
You still see these directives appearing in Cache-Control responses, as part of some long-treasured lore for controlling how Internet Explorer caches. But these directives have never worked...
https://grayduck.mn/2021/09/13/cache-co ... endations/
https://learn.microsoft.com/en-us/archi ... extensions

Code: Select all

Pragma: no-cache
Not only is the behavior of Pragma: no-cache largely undefined, but HTTP/1.0 client compatibility hasn't been necessary for about 20 years.
Same source.

Re: Suggestion about HTTP headers

Posted: 26 Oct 2022, 16:07
by Jan
Hi, thank you for the info, I will take a look at it for next version.

Thank you, Jan