-
Notifications
You must be signed in to change notification settings - Fork 12
/
.htaccess
30 lines (27 loc) · 880 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
28
29
30
####################
# 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>
RewriteEngine on
RewriteRule ^p/(.+) data_handler.py?codigo=$1 [NC,L]