Barryvdh\Debugbar\Controllers\AssetController::cacheResponse PHP Method

cacheResponse() protected method

Cache the response 1 year (31536000 sec)
protected cacheResponse ( Illuminate\Http\Response $response )
$response Illuminate\Http\Response
    protected function cacheResponse(Response $response)
    {
        $response->setSharedMaxAge(31536000);
        $response->setMaxAge(31536000);
        $response->setExpires(new \DateTime('+1 year'));
        return $response;
    }