false))); file_put_contents($cache_file, $js); } else { $js = file_get_contents($cache_file); } header("Content-Type: application/x-javascript; charset=utf8"); header("Cache-control: public, max-age=691200, must-revalidate"); header("Last-Modified: ".gmdate('D, d M Y H:i:s', $last_modified)." GMT"); header("Expires: ".gmdate('D, d M Y H:i:s', (filemtime($base_path.'js.php') + 691200))." GMT"); echo $js; ob_end_flush(); //end of js.php