http://www.fsf.org/ or write * to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. * */ /** HTTP HEADERS * Here are some HTTP headers, sometime used, we use HTTP, after all!! */ //if ($n_c == 1) { /* Cache mechanism must be disabled when $n_c variable is setted to 1. This prevents browsers from getting the page from its cache, if still valid, because doing that may result in errors for some section, ex real time dynamic contents. I think it's better NOT to cache some dynamic pages, so when the $n_c variable is setted to 1 cmsdAm will tell to cache peers and browsers to get a fresh copy from the server. */ header("Last-Modified: " . gmdate("D, d M Y H:i:s", time()) . " GMT"); header("Cache-Control: no-cache, must-revalidate"); // header("Cache-Control: private"); header("Expires: -1"); /*} else { header("Last-Modified: " . gmdate("D, d M Y H:i:s", filemtime($cms->sections->section_filename($section))) . " GMT"); header("Cache-Control: max-age=" . $cms->http->http_maxage . ", " . "s-maxage=" . $cms->http->http_maxage . ", " . "max-stale=" . $cms->http->http_maxage . ", " . "no-transform"); $expiretime = time() + $cms->http->http_maxage; header("Expires: " . gmdate("D, d M Y H:i:s", $expiretime) . " GMT"); }*/ header("X-Generator: " . $cms->conf->cmsdam_longversion); header("X-SiteAuthor: " . $cms->conf->HTML_Meta_author); header("Content-Type: " . $cms->http->http_contenttype . "; charset=" . $cms->http->http_charset); // This way we can include custom HTTP headers include ("etc/add_HTTP_headers.php"); ?>