So I have minify working as;
public function minify($f3, $args) {
$files = preg_replace('/(\.+\/)/', '', $_GET['files']);
echo \Web::instance()->minify($files, null, true);
}
and am calling it as;
<link rel="stylesheet" type="text/css" href="/minify?files=/css/reset.css,/css/style.css" />
and my route is;
GET /minify = \controller\Controller->minify, 3600
The minification works and the files are cached in the local file system but the response has a header of Cache-Control:no-store, no-cache, must-revalidate instead of a time
How do I change this?
Thanks