Commit 4c15617d authored by andre's avatar andre

Merge remote-tracking branch 'origin/master'

parents aeaa436f 603637d3
...@@ -32,6 +32,7 @@ use common\modules\content\models\CoContent; ...@@ -32,6 +32,7 @@ use common\modules\content\models\CoContent;
//'url:url', //'url:url',
[ [
'attribute' => 'position', 'attribute' => 'position',
'contentOptions' => ['style' => 'text-align:center']
], ],
[ [
'attribute' => 'url', 'attribute' => 'url',
......
...@@ -4,3 +4,18 @@ RewriteCond %{REQUEST_FILENAME} !-f ...@@ -4,3 +4,18 @@ RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php RewriteRule . index.php
<IfModule mod_expires.c>
<FilesMatch \.(gif|png|jpg|jpeg|ogg|mp4|mkv|flv|swf|wmv|asf|asx|wma|wax|wmx|wm)$>
ExpiresDefault "access plus 1 year"
</FilesMatch>
ExpiresActive on
ExpiresByType image/jpeg "access plus 7 day"
ExpiresByType image/gif "access plus 7 day"
ExpiresByType image/png "access plus 7 day"
<FilesMatch \.(css|js)$>
ExpiresDefault "access plus 1 year"
</FilesMatch>
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
</IfModule>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment