'image/png', 'Last-Modified' => gmdate('D, d M Y H:i:s', $last_modified).' GMT', 'Cache-Control' => 'public, max-age=31536000', // 365 days 'Expires' => gmdate('D, d M Y H:i:s', $last_modified + 31536000).' GMT', 'Etag' => $etag ], $header)); }); Response::macro('rawJson', function ($src = "", $status = 200, $header = []) { return Response::make($src)->header('Content-type', 'application/json'); }); } /** * Register any application services. * * @return void */ public function register() { // } }