forked from proyectosdeley/proyectos_de_ley
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
27 lines (25 loc) · 807 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
####################
# GZIP COMPRESSION #
####################
<ifModule mod_gzip.c>
mod_gzip on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file ^application/x-javascript.*
mod_gzip_item_include file ^application/javascript.*
mod_gzip_item_include file ^application/x-json.*
mod_gzip_item_include file ^application/json.*
mod_gzip_item_include file ^text/css.*
</ifModule>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 day"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/json "access plus 1 day"
ExpiresByType text/css "access plus 3 months"
ExpiresByType application/x-font-woff "access plus 1 year"
</ifModule>
<IfModule mod_deflate.c>
<FilesMatch "\.(woff|ttf|otf|svg)$" >
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>