Codesleeve\AssetPipeline\Filters\ClientCacheFilter::getLastTimeModified PHP Method

getLastTimeModified() private method

Store the last time this file was modified (which we don't know) so we just use the current datetime. We will store this date in $_SESSION so that next time we run we can re-use the datetime we first picked so that our cache isn't busted each time.
private getLastTimeModified ( string $key ) : string
$key string
return string
    private function getLastTimeModified($key)
    {
        return filemtime($this->asset->getSourceRoot() . '/' . $this->asset->getSourcePath());
    }