From e491b5dbf28d027e88c8f6f3f0fc28029385ef6b Mon Sep 17 00:00:00 2001 From: Akeit0 <90429982+Akeit0@users.noreply.github.com> Date: Sun, 19 Feb 2023 00:47:01 +0900 Subject: [PATCH] Create .htaccess --- docs/.htaccess | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/.htaccess diff --git a/docs/.htaccess b/docs/.htaccess new file mode 100644 index 0000000..81d4f61 --- /dev/null +++ b/docs/.htaccess @@ -0,0 +1,29 @@ +# This configuration file should be uploaded to the server as "/Build/.htaccess" +# NOTE: "mod_mime" Apache module must be enabled for this configuration to work. + + +# The following lines are required for builds without decompression fallback, compressed with gzip +RemoveType .gz +AddEncoding gzip .gz +AddType application/octet-stream .data.gz +AddType application/wasm .wasm.gz +AddType application/javascript .js.gz +AddType application/octet-stream .symbols.json.gz + +# The following lines are required for builds without decompression fallback, compressed with Brotli +RemoveType .br +RemoveLanguage .br +AddEncoding br .br +AddType application/octet-stream .data.br +AddType application/wasm .wasm.br +AddType application/javascript .js.br +AddType application/octet-stream .symbols.json.br + +# The following line improves loading performance for uncompressed builds +AddType application/wasm .wasm + +# Uncomment the following line to improve loading performance for gzip-compressed builds with decompression fallback +# AddEncoding gzip .unityweb + +# Uncomment the following line to improve loading performance for brotli-compressed builds with decompression fallback +# AddEncoding br .unityweb