Skip to content

Commit 1902871

Browse files
committed
Update htaccess information
Especially to not irritate apache or nginx users
1 parent a7dffec commit 1902871

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Configuration/2020/.htaccess

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
# Unity WebGL Configuration for Unity 2020+ for LiteSpeed Web Servers (LSWS)
12
# From https://github.com/JohannesDeml/UnityWebGL-LoadingTest
2-
# Unity WebGL Configuration for Unity 2020+
3+
# For nginx or apache take a look at https://docs.unity3d.com/Manual/webgl-server-configuration-code-samples.html
34
# Supports Brotli and no Compression, Gzip seems to have a problem.
45

56
Header set Content-Security-Policy "worker-src 'self' blob:;"
@@ -21,7 +22,7 @@ Header set Content-Security-Policy "worker-src 'self' blob:;"
2122
</Files>
2223

2324
<Files *.data.gz>
24-
AddType "application/octet-stream" data.gz
25+
AddType "application/octet-stream" .gz
2526
AddEncoding gzip .gz
2627
</Files>
2728

@@ -37,7 +38,7 @@ Header set Content-Security-Policy "worker-src 'self' blob:;"
3738
</Files>
3839

3940
<Files *.data.br>
40-
AddType "application/octet-stream" data.br
41+
AddType "application/octet-stream" .br
4142
AddEncoding br .br
4243
</Files>
4344
</IfModule>

0 commit comments

Comments
 (0)