Codesleeve\AssetPipeline\AssetPipelineController::clientCacheForFile PHP Method

clientCacheForFile() private method

Client cache regular files that are not javascript or stylesheets files
private clientCacheForFile ( string $path ) : void
$path string
return void
    private function clientCacheForFile($path)
    {
        $lastModified = filemtime($path);
        if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $lastModified) {
            header('HTTP/1.0 304 Not Modified');
            exit;
        }
    }