- enabled "HTTP/2 Server Push" for static resources, closed #685

This commit is contained in:
Mark Friedrich
2018-09-14 17:25:07 +02:00
parent 827e2aae5d
commit bffd22fc27
6 changed files with 293 additions and 30 deletions

View File

@@ -140,6 +140,8 @@ class Setup extends Controller {
* @throws \Exception\PathfinderException
*/
function beforeroute(\Base $f3, $params): bool {
$this->initResource($f3);
// init dbLib class. Manages all DB connections
$this->dbLib = DB\Database::instance();
@@ -152,9 +154,6 @@ class Setup extends Controller {
// body element class
$f3->set('tplBodyClass', 'pf-landing');
// js path (build/minified or raw uncompressed files)
$f3->set('tplPathJs', 'public/js/' . Config::getPathfinderData('version') );
return true;
}