'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, $status, array_merge([ 'Content-type' => 'application/json', 'Cache-Control' => 'public, max-age='.option('cache_expire_time') // 365 days ], $header)); }); } /** * Register any application services. * * @return void */ public function register() { // } }