Suggestion about HTTP headers

Phoca Download - download manager
plamen
Phoca Professional
Phoca Professional
Posts: 101
Joined: 16 Mar 2014, 13:23

Suggestion about HTTP headers

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Suggestion about HTTP headers

Post by Jan »

Hi, thank you for the info, I will take a look at it for next version.

Thank you, Jan
If you find Phoca extensions useful, please support the project
Post Reply