fix cache-control header when return_200_when_notfound is on
This commit is contained in:
parent
41e0a628d6
commit
98a0d70571
|
|
@ -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'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user