fix cache-control header when return_200_when_notfound is on

This commit is contained in:
printempw 2016-10-03 21:57:55 +08:00
parent 41e0a628d6
commit 98a0d70571

View File

@ -26,7 +26,7 @@ class CheckPlayerExistMiddleware
'player_name' => $player_name,
'errno' => 404,
'msg' => 'Player Not Found.'
]);
])->header('Cache-Control', 'public, max-age='.option('cache_expire_time'));
} else {
abort(404, trans('general.unexistent-player'));
}