$now = time(); $mtexpirestr = gmstrftime(“%a, %d %b %Y %H:%M:%S GMT”, $now + 31550600); if (!$settings['clientCache'] || !$settings['clientCacheCheck'] || !isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) || $_SERVER['HTTP_IF_MODIFIED_SINCE'] != $mtimestr) { if ($settings['clientCache'] && $settings['clientCacheCheck']) { header(“Last-Modified: ” . $mtimestr); header(“Vary: Accept-Encoding”); if ($file_type==’js’ | $file_type==’css’) { header(“Expires: ” . gmdate(“D, d M Y H:i:s”, $mtime + 315576000) . ” GMT”); header(“Cache-Control: max-age=315576000, private, must-revalidate”, true); } else { header(“Expires: ” . gmdate(“D, d M Y H:i:s”, $mtime + 315576000) . ” GMT”); header(“Cache-Control: max-age=315576000, public, must-revalidate”, true); } } elseif ($settings['clientCache']) { headerNeverExpire(); } else headerNoCache(); //if you change it to false, the files will not be checked for modifications and always cached files will be used (for better performance) $settings['serverCacheCheck'] = false;