Set Cache-Control in some headers.
This commit is contained in:
parent
2676517fc6
commit
27a848db3c
|
@ -1,7 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
|
header("Expires: ".gmdate("D, d M Y H:i:s",time()+(600))." GMT");
|
||||||
header("Expires: ".gmdate("D, d M Y H:i:s",time()+(3600*24))." GMT");
|
|
||||||
header("Cache-Control: max-age=100");
|
header("Cache-Control: max-age=100");
|
||||||
header("Pragma: cache");
|
header("Pragma: cache");
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
<?php header("Expires: ".gmdate("D, d M Y H:i:s",time()+7200)." GMT");
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
|
header("Expires: ".gmdate("D, d M Y H:i:s",time()+(600))." GMT");
|
||||||
|
header("Cache-Control: max-age=100");
|
||||||
|
header("Pragma: cache");
|
||||||
|
|
||||||
$_SESSION['isframed'] = 1;
|
$_SESSION['isframed'] = 1;
|
||||||
|
|
||||||
include "config.inc.php";
|
include "config.inc.php";
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
|
header("Expires: ".gmdate("D, d M Y H:i:s",time()+(600))." GMT");
|
||||||
|
header("Cache-Control: max-age=100");
|
||||||
|
header("Pragma: cache");
|
||||||
/* rocksolid overboard - overboard for rslight
|
/* rocksolid overboard - overboard for rslight
|
||||||
* Download: https://news.novabbs.com/getrslight
|
* Download: https://news.novabbs.com/getrslight
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
//header("Expires: ".gmdate("D, d M Y H:i:s",time()+7200)." GMT");
|
|
||||||
session_start();
|
session_start();
|
||||||
|
header("Expires: ".gmdate("D, d M Y H:i:s",time()+(600))." GMT");
|
||||||
|
header("Cache-Control: max-age=100");
|
||||||
|
header("Pragma: cache");
|
||||||
|
|
||||||
$_SESSION['group'] = $_SERVER['REQUEST_URI'];
|
$_SESSION['group'] = $_SERVER['REQUEST_URI'];
|
||||||
$_SESSION['rsactive'] = true;
|
$_SESSION['rsactive'] = true;
|
||||||
|
|
Loading…
Reference in New Issue