How to send `cache-control`- and `last-modified` headers?

Hello,
I just have noticed, that the response headers of my site return
cache-control: no-store, private

I’d also like to send a Last-modifiedheader for the site, or even better for each page.
Unfortunately I seem to be too blind to find the right parts in the docs.
Do I set this in the cors part of `site/config.php`, or in a route hook, or somewhere else?

Any advice is much appreciated.

Ok, to answer my own question:

EDIT N° 6, (yay!). I skip the htaccess part completely now and send all headers in the hook.

  1. Sending the headers can be achieved with a route:after hook:

    // Quick example, has room for improvement.
    'route:after' => function (Kirby\Http\Route $route, string $path, string $method, mixed $result, bool $final) {
    	$this->response()->header('Cache-Control', 'public, max-age=3600');
    	if($page = page($path)) {
    		$this->response()->header('Last-Modified', gmdate("D, d M Y H:i:s \G\M\T", $page->modified()));
    	}
    	return $result;
    },
    //...