Use custom wasm shell for mini variant too
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
b9279fc2b3
commit
b4b7f78fde
4 changed files with 217 additions and 15 deletions
|
|
@ -1,13 +1,16 @@
|
|||
AddType application/octet-stream .data
|
||||
AddType application/wasm .wasm
|
||||
|
||||
RewriteEngine on
|
||||
RewriteCond %{HTTP:Accept-Encoding} gzip
|
||||
RewriteCond %{HTTP:Accept-Encoding} br
|
||||
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]
|
||||
RewriteRule ^(.+) $1.br
|
||||
RewriteRule "\.data\.br$" "-" [T=application/octet-stream,E=no-brotli,E=no-gzip]
|
||||
RewriteRule "\.js\.br$" "-" [T=application/javascript,E=no-brotli,E=no-gzip]
|
||||
RewriteRule "\.wasm\.br$" "-" [T=application/wasm,E=no-brotli,E=no-gzip]
|
||||
|
||||
<FilesMatch ".+\.gz$">
|
||||
Header set Content-Encoding gzip
|
||||
<FilesMatch ".+\.br$">
|
||||
Header set Content-Encoding br
|
||||
Header append Vary Accept-Encoding
|
||||
</FilesMatch>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue