nxnx/pry/master/.htaccess
php_flag display_errors on
php_flag display_startup_errors on
AddDefaultCharset utf-8
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
<IfModule mod_setenvif.c>
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
</IfModule>
</IfModule>
#Использование кеша браузеров;
FileETag MTime Size
<Ifmodule mod_expires.c>
#Подключение модуля "expires";
ExpiresActive on
#ExpiresDefault "access plus 1 month"
ExpiresByType image/gif "access plus 2 months"
ExpiresByType image/jpeg "access plus 2 months"
ExpiresByType image/png "access plus 2 months"
ExpiresByType image/x-icon "access plus 2 months"
ExpiresByType text/css "access plus 2 months"
ExpiresByType text/javascript "access plus 2 months"
</Ifmodule>
#Запрет отдачи HTTP-заголовков Vary браузерам семейства MSIE;
<IfModule mod_setenvif.c>
BrowserMatch "MSIE" force-no-vary
BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
</IfModule>
# Перенаправление на gzip файлы
# gulp watch
AddEncoding gzip .gz
<FilesMatch "^(.*).js.gz$">
ForceType text/javascript
Header set Content-Encoding: gzip
</FilesMatch>
<FilesMatch "^(.*).css.gz$">
ForceType text/css
Header set Content-Encoding: gzip
</FilesMatch>
<FilesMatch "^(.*).js$">
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !".*Safari.*"
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*).js$ $1.js.gz [L]
ForceType text/javascript
</FilesMatch>
<FilesMatch "^(.*).css$">
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !".*Safari.*"
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*).css$ $1.css.gz [L]
ForceType text/css
</FilesMatch>
# ===========================================
On Github License
Files