2020-08-07 12:23:59 +02:00
|
|
|
# Activation de la génération des en-têtes Expires
|
|
|
|
ExpiresActive On
|
|
|
|
# Les documents HTML, JS, JSON, CSS, XML expirent dès leur modification
|
|
|
|
ExpiresByType text/html M0
|
|
|
|
ExpiresByType text/javascript M0
|
|
|
|
ExpiresByType application/javascript M0
|
|
|
|
ExpiresByType application/json M0
|
|
|
|
ExpiresByType text/css M0
|
|
|
|
ExpiresByType application/xml M0
|
|
|
|
|
|
|
|
# Compression de certains fichiers
|
|
|
|
SetOutputFilter DEFLATE
|
|
|
|
|
|
|
|
AddOutputFilterByType DEFLATE application/javascript
|
|
|
|
AddOutputFilterByType DEFLATE application/rss+xml
|
|
|
|
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
|
|
|
|
AddOutputFilterByType DEFLATE application/x-font
|
|
|
|
AddOutputFilterByType DEFLATE application/x-font-opentype
|
|
|
|
AddOutputFilterByType DEFLATE application/x-font-otf
|
|
|
|
AddOutputFilterByType DEFLATE application/x-font-truetype
|
|
|
|
AddOutputFilterByType DEFLATE application/x-font-ttf
|
|
|
|
AddOutputFilterByType DEFLATE application/x-javascript
|
|
|
|
AddOutputFilterByType DEFLATE application/xhtml+xml
|
|
|
|
AddOutputFilterByType DEFLATE application/xml
|
|
|
|
AddOutputFilterByType DEFLATE font/opentype
|
|
|
|
AddOutputFilterByType DEFLATE font/otf
|
|
|
|
AddOutputFilterByType DEFLATE font/ttf
|
|
|
|
AddOutputFilterByType DEFLATE image/png
|
|
|
|
AddOutputFilterByType DEFLATE image/svg+xml
|
|
|
|
AddOutputFilterByType DEFLATE image/x-icon
|
|
|
|
AddOutputFilterByType DEFLATE text/css
|
|
|
|
AddOutputFilterByType DEFLATE text/html
|
|
|
|
AddOutputFilterByType DEFLATE text/javascript
|
|
|
|
AddOutputFilterByType DEFLATE text/xml
|
|
|
|
|
|
|
|
# Bloquer ETag
|
|
|
|
Header unset ETag
|
|
|
|
FileETag none
|
|
|
|
|
|
|
|
# Protection de la lecture des répertoires
|
|
|
|
Options -Indexes
|
|
|
|
|
2021-01-04 15:42:28 +01:00
|
|
|
# protection du htaccess
|
2020-08-07 12:23:59 +02:00
|
|
|
<files .htaccess>
|
|
|
|
order allow,deny
|
|
|
|
deny from all
|
|
|
|
</files>
|
|
|
|
|
|
|
|
# erreur 404
|
2022-01-28 17:37:19 +01:00
|
|
|
ErrorDocument 404 /404.html
|