Set Cache-Control in some headers.

This commit is contained in:
Retro_Guy 2023-08-04 06:49:48 -07:00
parent 2676517fc6
commit 27a848db3c
4 changed files with 12 additions and 4 deletions

View File

@ -1,7 +1,6 @@
<?php
session_start();
header("Expires: ".gmdate("D, d M Y H:i:s",time()+(3600*24))." GMT");
header("Expires: ".gmdate("D, d M Y H:i:s",time()+(600))." GMT");
header("Cache-Control: max-age=100");
header("Pragma: cache");

View File

@ -1,5 +1,9 @@
<?php header("Expires: ".gmdate("D, d M Y H:i:s",time()+7200)." GMT");
<?php
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;
include "config.inc.php";

View File

@ -1,5 +1,8 @@
<?php
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
* Download: https://news.novabbs.com/getrslight
*

View File

@ -1,6 +1,8 @@
<?php
//header("Expires: ".gmdate("D, d M Y H:i:s",time()+7200)." GMT");
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['rsactive'] = true;