Hi.
The problem is that minified files always regenerating after page reloaded. How can i prevent this until my minified content actually changed?
$di->set('assets', function() use ($config) {
$assets = new \Phalcon\Assets\Manager();
$assets
->addJs('//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', false)
->addJs('//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js', false);
$assets
->collection('headerCss')
->addCss('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css', false, false)
->addCss('https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', false, false)
->addCss('https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', false, false)
->addCss($config->application->backendAssets.'/plugins/jvectormap/jquery-jvectormap-1.2.2.css', true)
->setTargetPath($config->application->documentRoot.'/assets/css/css.minified.backend.css')
->setTargetUri('p/assets/css/css.minified.backend.css')
->join(true)
->addFilter(new \Phalcon\Assets\Filters\Cssmin())
;
return $assets;
});