-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
71 lines (61 loc) · 2.43 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
## ARQUIVO DEFAULT ##
DirectoryIndex index.html index.htm index.php
AddDefaultCharset UTF-8
DefaultLanguage pt-BR
##AddCharset UTF-8 .js .htm .htm .css
# Set encoding for file extensions
<IfModule mod_mime.c>
AddType text/cache-manifest .manifest
AddType image/svg+xml .svg .svgz
AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/.*
mod_gzip_item_include mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 2 weeks"
ExpiresByType text/cache-manifest "access plus 1 seconds"
ExpiresByType text/html "access plus 2 weeks"
ExpiresByType image/gif "access plus 2 weeks"
ExpiresByType image/jpeg "access plus 2 weeks"
ExpiresByType image/png "access plus 2 weeks"
ExpiresByType text/css "access plus 2 weeks"
ExpiresByType image/x-icon "access plus 2 weeks"
ExpiresByType image/vnd.microsoft.icon "access plus 2 weeks"
ExpiresByType application/x-javascript "access plus 2 weeks"
ExpiresByType application/javascript "access plus 2 weeks"
ExpiresByType image/svg+xml "access plus 2 weeks"
ExpiresByType image/svg+xml "access plus 2 weeks"
ExpiresByType image/svg+xml "access plus 2 weeks"
</ifModule>
<IfModule mod_headers.c>
Header set Cache-Control "max-age=604800, public"
Header unset Server
Header unset X-Powered-By
Header unset ETag
<FilesMatch "\.(js|css|xml|gz|svg)$">
Header append Vary: Accept-Encoding
Header unset Cookie
Header unset Set-Cookie
</FilesMatch>
</IfModule>
<IfModule mod_deflate.c>
#The following line is enough for .js and .css
AddOutputFilter DEFLATE js css text/html
#The following line also enables compression by file content type, for the following list of Content-Type:s
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml x-font/otf x-font/ttf x-font/eot image/svg+xml
#The following lines are to avoid bugs with some browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>