Add wasm htaccess gzip setup example; Fix build with SDL installed
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
9616377f1e
commit
cd6ca45bfd
2 changed files with 14 additions and 1 deletions
2
carla
2
carla
|
@ -1 +1 @@
|
|||
Subproject commit e3a0aad27a01c1a91e12000c9df856a1df0f34fa
|
||||
Subproject commit c6f49f6da367306f0c02e49dcfd6fba2d7c93551
|
13
src/emscripten/htaccess
Normal file
13
src/emscripten/htaccess
Normal file
|
@ -0,0 +1,13 @@
|
|||
RewriteEngine on
|
||||
RewriteCond %{HTTP:Accept-Encoding} gzip
|
||||
RewriteCond %{REQUEST_URI} .*\.(data|js|wasm)
|
||||
#RewriteCond %{REQUEST_FILENAME}.gz -s
|
||||
RewriteRule ^(.+) $1.gz
|
||||
RewriteRule "\.data\.gz$" "-" [T=application/octet-stream,E=no-brotli,E=no-gzip]
|
||||
RewriteRule "\.js\.gz$" "-" [T=application/javascript,E=no-brotli,E=no-gzip]
|
||||
RewriteRule "\.wasm\.gz$" "-" [T=application/wasm,E=no-brotli,E=no-gzip]
|
||||
|
||||
<FilesMatch ".+\.gz$">
|
||||
Header set Content-Encoding gzip
|
||||
Header append Vary Accept-Encoding
|
||||
</FilesMatch>
|
Loading…
Add table
Add a link
Reference in a new issue