Skip to content

Commit

Permalink
add htaccess example
Browse files Browse the repository at this point in the history
  • Loading branch information
marwie committed May 23, 2024
1 parent 860db56 commit 572e7f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions documentation/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```
<IfModule mod_mime.c>
RemoveType .gz
AddEncoding gzip .gz
AddType application/javascript .js.gz
```


### Deploy to Github Pages
Expand Down

0 comments on commit 572e7f6

Please sign in to comment.