-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
19 lines (17 loc) · 1.62 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## Pour activer la compression des fichiers
## dans php.ini : zlib.output_compression = On
## dans la config apache activer :
## LoadModule deflate_module "{APACHEPATH}/modules/mod_deflate.so"
## LoadModule filter_module "{APACHEPATH}/modules/mod_filter.so"
#SetOutputFilter DEFLATE
#AddOutputFilterByType DEFLATE "application/atom+xml" "application/javascript" "application/json" "application/ld+json" "application/manifest+json" "application/rdf+xml" "application/rss+xml" "application/schema+json" "application/vnd.geo+json" "application/vnd.ms-fontobject" "application/x-font-ttf" "application/x-javascript" "application/x-web-app-manifest+json" "application/xhtml+xml" "application/xml" "font/eot" "font/opentype" "image/bmp" "image/svg+xml" "image/vnd.microsoft.icon" "image/x-icon" "text/cache-manifest" "text/css" "text/html" "text/javascript" "text/plain" "text/vcard" "text/vnd.rim.location.xloc" "text/vtt" "text/x-component" "text/x-cross-domain-policy" "text/xml"
## Variante de compression qui permet de faire fonctionner le img_check
# <IfModule mod_deflate.c>
# ## La ligne suivante suffit pour .js et .css
# AddOutputFilter DEFLATE js css
# AddOutputFilterByType DEFLATE text/plain text/xml application/xhtml+xml text/css application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp text/html
# ## Les lignes suivantes sont destinées à éviter les bugs avec certains navigateurs
# #BrowserMatch ^Mozilla/4 gzip-only-text/html
# #BrowserMatch ^Mozilla/4\.0[678] no-gzip
# #BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# </IfModule>