From 572e7f669c87ca7f13f799380fe68eede503452e Mon Sep 17 00:00:00 2001 From: Marcel Wiessler Date: Thu, 23 May 2024 10:55:08 +0200 Subject: [PATCH] add htaccess example --- documentation/deployment.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/documentation/deployment.md b/documentation/deployment.md index cc0321d2f..afa51230b 100644 --- a/documentation/deployment.md +++ b/documentation/deployment.md @@ -273,6 +273,15 @@ Option 2: You can turn gzip compression off in the build settings at File/Build ::: +#### Enabling gzip using a .htaccess file +To enable gzip compression on your FTP server you can create a file named `.htaccess` in the directory you want to upload to (or a parent directory). +Insert the following code into your `.htaccess` file and save/upload it to your server: +``` + +RemoveType .gz +AddEncoding gzip .gz +AddType application/javascript .js.gz +``` ### Deploy to Github Pages