session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
session_start(); // - … function cmsCache_control($file, $time) { $etag = md5_file($file); $expr = 60 * 60 * 24 * 7; header( "ETAG: " . $etag); header( "LAST-MODIFIED: " . gmdate( "D, d MYH:i:s" , $time) . " GMT" ); header( "CACHE-CONTROL: " ); header( "PRAGMA: " ); header( "EXPIRES: " ); if (isset($_SERVER[ "HTTP_IF_MODIFIED_SINCE" ])) { $if_modified_since = preg_replace( "/;.*$/" , "" , $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ]); if (trim($_SERVER[ "HTTP_IF_NONE_MATCH" ]) == $etag && $if_modified_since == gmdate( "D, d MYH:i:s" , $time). " GMT" ) { header( "HTTP/1.0 304 Not modified" ); header( "CACHE-CONTROL: MAX-AGE={$expr}, MUST-REVALIDATE" ); exit; } } } … cmsCache_control($_SERVER[SCRIPT_FILENAME], filemtime($_SERVER[SCRIPT_FILENAME])); // , * This source code was highlighted with Source Code Highlighter .
Source: https://habr.com/ru/post/44906/
All Articles