-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
executable file
·44 lines (30 loc) · 1.49 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
# Options ----------------------------------------------------------------------
Options -Indexes
# Erreur 404 -------------------------------------------------------------------
ErrorDocument 404 https://www.goetter.fr/404.html
# Compression ------------------------------------------------------------------
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/javascript
# Expiration et cache ----------------------------------------------------------
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/plain "access plus 1 day"
ExpiresByType text/html "access plus 1 hour"
ExpiresByType application/x-javascript "access plus 3 months"
ExpiresByType application/javascript "access plus 3 months"
ExpiresByType text/css "access plus 3 months"
ExpiresByType image/gif "access plus 3 months"
ExpiresByType image/x-icon "access plus 3 months"
ExpiresByType image/png "access plus 3 months"
ExpiresByType image/jpeg "access plus 3 months"
ExpiresByType application/xml "access plus 1 hour"
# ExpiresDefault "access plus 1 day"
</IfModule>
FileETag none
# Charset ----------------------------------------------------------------------
AddDefaultCharset UTF-8
AddCharset UTF-8 .css
# Protection contre les attaques du type "clickjacking" ------------------------
Header set X-Frame-Options SAMEORIGIN
# xss-protection--------------------------------------------------------------
Header set x-xss-protection "1; mode=block"