mercredi 2 janvier 2019

Laravel remove header values from API response

Laravel App Version 5.6 i wish to remove the value private from the Cache-Control Header which is presented in the API response

enter image description here

i have a middleware that is adding the "no-cache" and "no-store" values

    $response = $next($request);
    $response->header('Cache-Control', 'no-cache, no-store');
    return $response;

is it possible to do it in the same Middleware or any other work around



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire