Skip to content

Instantly share code, notes, and snippets.

@Ginnw2
Created November 19, 2018 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ginnw2/67df75ab53b8a5f59119f17ad1534f00 to your computer and use it in GitHub Desktop.
Save Ginnw2/67df75ab53b8a5f59119f17ad1534f00 to your computer and use it in GitHub Desktop.
ускорение загрузки средством gzip-сжатия сервера для всех файлов (css, javascript, php, images), вне зависимости от их расположения, что обеспечит их оптимизацию до 80%
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment