'image/png', 'Last-Modified' => gmdate('D, d M Y H:i:s', $last_modified).' GMT', 'Cache-Control' => 'public, max-age='.option('cache_expire_time'), // 365 days 'Expires' => gmdate('D, d M Y H:i:s', $last_modified + option('cache_expire_time')).' 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() { // } }