13 $etag =
'"' . md5(
"$language|$lastcache") .
'"';
15 header(
'Expires: ' . gmdate(
'D, d M Y H:i:s \G\M\T', strtotime(
"+6 months")),
true);
16 header(
"Pragma: public",
true);
17 header(
"Cache-Control: public",
true);
20 if (isset($_SERVER[
'HTTP_IF_NONE_MATCH']) && trim($_SERVER[
'HTTP_IF_NONE_MATCH']) === $etag) {
21 header(
"HTTP/1.1 304 Not Modified");
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if($lastcache) $all_translations
elgg echo
Translates a string.
clearfix elgg elgg elgg elgg page header
$language
$vars['language'] $vars['lc'] if present, client will be sent long expires headers ...
if(file_exists($welcome)) $vars