Files
UnrealEngineUWP/Engine/Build/HTML5/htaccess_template.txt
Nick Shin 4326d0d840 Epic's GitHub policy is to treat "unknown" file extensions as "binary"
changing filenames so that they will show up GitHub's repo

this is in reference to GitHub PR #4780

#jira UE-60136  GitHub 4780 : Proposed HTML5 Changes
#rb none
#rn

[CL 4214064 by Nick Shin in Dev-Mobile branch]
2018-07-16 12:31:06 -04:00

23 lines
587 B
Plaintext

AddType application/x-javascript .jsgz
AddType application/wasm .wasmgz
AddType text/plain .symbolsgz
AddType application/octet-stream .memgz
# NOTE: .data is NOT compressed
AddType application/octet-stream .data
RewriteEngine on
# If client accepts compressed files
RewriteCond %{HTTP:Accept-Encoding} gzip
# and if compressed file exists
RewriteCond %{REQUEST_FILENAME}gz -f
# send .ext.gz instead of .ext
RewriteRule ^(.+)\.(js|wasm|symbols|mem)$ $1.$2gz
AddEncoding gzip .jsgz
AddEncoding gzip .wasmgz
AddEncoding gzip .symbolsgz
AddEncoding gzip .memgz
AddEncoding gzip .datagz