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
https://grayduck.mn/2021/09/13/cache-co ... endations/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://learn.microsoft.com/en-us/archi ... extensions
Code: Select all
Pragma: no-cache
Same source.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.