diff --git a/.gitignore b/.gitignore index 859220653..8d86b9587 100644 --- a/.gitignore +++ b/.gitignore @@ -53,7 +53,8 @@ nbproject venv/ #ignore Composer dependencies -vendor +/vendor +/view/asset #ignore config files from JetBrains /.idea \ No newline at end of file diff --git a/composer.json b/composer.json index 7bdba4cf0..e064a0a6a 100644 --- a/composer.json +++ b/composer.json @@ -54,8 +54,8 @@ "preferred-install": "dist", "fxp-asset": { "installer-paths": { - "npm-asset-library": "vendor/asset", - "bower-asset-library": "vendor/asset" + "npm-asset-library": "view/asset", + "bower-asset-library": "view/asset" } } }, diff --git a/view/.htaccess b/view/.htaccess index 04cd54685..6871f0927 100644 --- a/view/.htaccess +++ b/view/.htaccess @@ -1,5 +1,5 @@ - + #Apache 2.4 Require all denied @@ -8,3 +8,18 @@ Deny from all + + + ExpiresActive On + ExpiresByType image/gif "access plus 1 year" + ExpiresByType image/jpeg "access plus 1 year" + ExpiresByType image/png "access plus 1 year" + ExpiresByType application/javascript "access plus 1 month" + ExpiresByType text/javascript "access plus 1 month" + ExpiresByType text/css "access plus 1 month" + + + + Header set Cache-Control "public" + + \ No newline at end of file diff --git a/view/templates/admin/federation.tpl b/view/templates/admin/federation.tpl index bd2af3d78..5f89d4f7d 100644 --- a/view/templates/admin/federation.tpl +++ b/view/templates/admin/federation.tpl @@ -1,4 +1,4 @@ - +

{{$title}} - {{$page}}

diff --git a/view/templates/event_head.tpl b/view/templates/event_head.tpl index 36be15290..baa031f04 100644 --- a/view/templates/event_head.tpl +++ b/view/templates/event_head.tpl @@ -1,8 +1,8 @@ - - - - + + + + - + - - - - + + + + - + - + + - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + {{* own js files *}} - - - - + + + + + - - + + - + diff --git a/view/theme/frost-mobile/templates/event_end.tpl b/view/theme/frost-mobile/templates/event_end.tpl index 1df60bdfd..8641b7c1b 100644 --- a/view/theme/frost-mobile/templates/event_end.tpl +++ b/view/theme/frost-mobile/templates/event_end.tpl @@ -1,3 +1,3 @@ - - + + diff --git a/view/theme/frost-mobile/templates/event_head.tpl b/view/theme/frost-mobile/templates/event_head.tpl index 6c332b435..e4abc175a 100644 --- a/view/theme/frost-mobile/templates/event_head.tpl +++ b/view/theme/frost-mobile/templates/event_head.tpl @@ -1,6 +1,6 @@ - - + + + + + diff --git a/view/theme/frost/templates/end.tpl b/view/theme/frost/templates/end.tpl index b49fc3cd4..b8a598de5 100644 --- a/view/theme/frost/templates/end.tpl +++ b/view/theme/frost/templates/end.tpl @@ -3,15 +3,15 @@ - + - - - + + + - + diff --git a/view/theme/frost/templates/event_end.tpl b/view/theme/frost/templates/event_end.tpl index 1df60bdfd..8641b7c1b 100644 --- a/view/theme/frost/templates/event_end.tpl +++ b/view/theme/frost/templates/event_end.tpl @@ -1,3 +1,3 @@ - - + + diff --git a/view/theme/frost/templates/event_head.tpl b/view/theme/frost/templates/event_head.tpl index 6c332b435..e4abc175a 100644 --- a/view/theme/frost/templates/event_head.tpl +++ b/view/theme/frost/templates/event_head.tpl @@ -1,6 +1,6 @@ - - + + + - - - + + + + - + + + +