Revision 45777c10
src/etc/inc/pfsense-utils.inc | ||
---|---|---|
3642 | 3642 |
|
3643 | 3643 |
/* Send cache headers */ |
3644 | 3644 |
if (isset($_SERVER['HTTPS'])) { |
3645 |
header('Pragma: '); |
|
3646 | 3645 |
header('Cache-Control: '); |
3647 | 3646 |
} else { |
3648 |
header("Pragma: private"); |
|
3649 | 3647 |
header("Cache-Control: private, must-revalidate"); |
3650 | 3648 |
} |
3651 | 3649 |
|
src/usr/local/captiveportal/index.php | ||
---|---|---|
32 | 32 |
|
33 | 33 |
header("Expires: 0"); |
34 | 34 |
header("Cache-Control: no-cache, no-store, must-revalidate"); |
35 |
header("Pragma: no-cache"); |
|
36 | 35 |
header("Connection: close"); |
37 | 36 |
|
38 | 37 |
global $cpzone, $cpzoneid, $cpzoneprefix; |
src/usr/local/www/getqueuestats.php | ||
---|---|---|
28 | 28 |
|
29 | 29 |
header("Last-Modified: " . gmdate("D, j M Y H:i:s") . " GMT"); |
30 | 30 |
header("Expires: " . gmdate("D, j M Y H:i:s", time()) . " GMT"); |
31 |
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP/1.1 |
|
32 |
header("Pragma: no-cache"); // HTTP/1.0 |
|
31 |
header("Cache-Control: no-cache, no-store, must-revalidate"); |
|
33 | 32 |
|
34 | 33 |
require_once("auth_check.inc"); |
35 | 34 |
include_once("shaper.inc"); |
src/usr/local/www/getstats.php | ||
---|---|---|
31 | 31 |
|
32 | 32 |
header("Last-Modified: " . gmdate("D, j M Y H:i:s") . " GMT"); |
33 | 33 |
header("Expires: " . gmdate("D, j M Y H:i:s", time()) . " GMT"); |
34 |
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP/1.1 |
|
35 |
header("Pragma: no-cache"); // HTTP/1.0 |
|
34 |
header("Cache-Control: no-cache, no-store, must-revalidate"); |
|
36 | 35 |
|
37 | 36 |
require_once("auth_check.inc"); |
38 | 37 |
include_once("includes/functions.inc.php"); |
src/usr/local/www/graph.php | ||
---|---|---|
39 | 39 |
|
40 | 40 |
header("Last-Modified: " . gmdate("D, j M Y H:i:s") . " GMT"); |
41 | 41 |
header("Expires: " . gmdate("D, j M Y H:i:s", time()) . " GMT"); |
42 |
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP/1.1 |
|
43 |
header("Pragma: no-cache"); // HTTP/1.0 |
|
42 |
header("Cache-Control: no-cache, no-store, must-revalidate"); |
|
44 | 43 |
header("Content-type: image/svg+xml"); |
45 | 44 |
|
46 | 45 |
/********** HTTP REQUEST Based Conf ***********/ |
src/usr/local/www/graph_cpu.php | ||
---|---|---|
39 | 39 |
|
40 | 40 |
header("Last-Modified: " . gmdate("D, j M Y H:i:s") . " GMT"); |
41 | 41 |
header("Expires: " . gmdate("D, j M Y H:i:s", time()) . " GMT"); |
42 |
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP/1.1 |
|
43 |
header("Pragma: no-cache"); // HTTP/1.0 |
|
42 |
header("Cache-Control: no-cache, no-store, must-revalidate"); |
|
44 | 43 |
header("Content-type: image/svg+xml"); |
45 | 44 |
|
46 | 45 |
/********* Other conf *******/ |
src/usr/local/www/guiconfig.inc | ||
---|---|---|
56 | 56 |
header("Expires: 0"); |
57 | 57 |
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); |
58 | 58 |
header("Cache-Control: no-cache, no-store, must-revalidate"); |
59 |
header("Pragma: no-cache"); |
|
60 | 59 |
} |
61 | 60 |
|
62 | 61 |
require_once("authgui.inc"); |
src/usr/local/www/status_queues.php | ||
---|---|---|
30 | 30 |
/* |
31 | 31 |
header("Last-Modified: " . gmdate("D, j M Y H:i:s") . " GMT"); |
32 | 32 |
header("Expires: " . gmdate("D, j M Y H:i:s", time()) . " GMT"); |
33 |
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP/1.1 |
|
34 |
header("Pragma: no-cache"); // HTTP/1.0 |
|
33 |
header("Cache-Control: no-cache, no-store, must-revalidate"); |
|
35 | 34 |
*/ |
36 | 35 |
|
37 | 36 |
require_once("guiconfig.inc"); |
Also available in: Unified diff
Remove deprecated pragma header. Implement #15781
This removes adding pragma header which is now deprecated. Cache control is used instead.