Hi!
I am running this code;
$response = $response->withHeader(‘Cache-Control’, ‘public, max-age=86400’);
$logger->info($response->getHeaderLine(‘Cache-Control’));
return $response;
Which seem pretty basic.
the log prints “slim-app.INFO: public, max-age=96400 [] {“uid”:“8cbf429”}”,
but yet, curl/postman/firefox/chrome says :
The only exception I know is when you implement integration (http) tests.
Then you should use $response = $app->handle($request) instead of $app->run();.