From 180dfdbd3eb69ea41bd93f43911a4feb82da658c Mon Sep 17 00:00:00 2001 From: Diego Joss Date: Sun, 8 Jun 2025 10:16:18 +0200 Subject: [PATCH] static: enable apache file compression (htaccess and user.ini) --- static/.htaccess | 6 ++++++ static/.user.ini | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 static/.htaccess create mode 100644 static/.user.ini diff --git a/static/.htaccess b/static/.htaccess new file mode 100644 index 0000000..f1c4658 --- /dev/null +++ b/static/.htaccess @@ -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 diff --git a/static/.user.ini b/static/.user.ini new file mode 100644 index 0000000..ec0d40d --- /dev/null +++ b/static/.user.ini @@ -0,0 +1,2 @@ +; Compress file output: https://faq.infomaniak.com/2013 +zlib.output_compression = On \ No newline at end of file