/** * Sends the cache control headers Last-Modified and ETag * Uses the timestamp of the cache file as base for calculation. * Additionally, this method exits if the client sent a matching If-None-Match or If-Modified-Since header * You can call this method twice if you created a new cache file and don’t have any other timestamp. It will only output the headers once. * @param $iTimestamp deprecated: to use this method without a cache file, call LinkUtil::sendCacheControlHeaders directly */ public function sendCacheControlHeaders($iTimestamp = null) { if ($iTimestamp !== null) { LinkUtil::sendCacheControlHeaders($iTimestamp); } else { LinkUtil::sendCacheControlHeadersForCache($this); } }