static: enable apache file compression (htaccess and user.ini)
This commit is contained in:
6
static/.htaccess
Normal file
6
static/.htaccess
Normal file
@ -0,0 +1,6 @@
|
||||
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"
|
||||
|
||||
# SECTION BEGIN GIT PROTECTION
|
||||
RedirectMatch 404 /\.git
|
||||
# SECTION END GIT PROTECTION
|
||||
2
static/.user.ini
Normal file
2
static/.user.ini
Normal file
@ -0,0 +1,2 @@
|
||||
; Compress file output: https://faq.infomaniak.com/2013
|
||||
zlib.output_compression = On
|
||||
Reference in New Issue
Block a user