nextcloud/lib
Daniel Calviño Sánchez 24bc96ad09 Allow to serve static WebAssembly and TensorFlow Lite files
Since Talk 13 (and thus Nextcloud 23) WebAssembly (.wasm) and TensorFlow
Lite (.tflite) files need to be loaded from the web server to provide
certain features (like the background blur in the WebUI).

Those files can be treated in a similar way to other static resources,
and there should not be any problem caching or compressing them.
However, as compressed TensorFlow Lite files are only ~12% smaller,
the compression directive depends on the MIME type and there is no
standard MIME type for TensorFlow Lite files it is not worth to compress
them.

Moreover, no directives to compress WebAssembly files were added either,
as it seems that they would override any other compression directives
set in the default server configuration; for reference it could be done
with something like:
<IfModule mod_deflate.c>
  <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE application/wasm
  </IfModule>
</IfModule>

Depending on the setup "application/wasm" may not be associated with
".wasm" files, so the directive was added just in case, as otherwise
browsers log a warning.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-11-17 13:00:39 +01:00
..
composer Add an OCP for trusted domain helper 2021-10-28 10:24:16 +02:00
l10n [tx-robot] updated from transifex 2021-11-15 02:24:28 +00:00
private Allow to serve static WebAssembly and TensorFlow Lite files 2021-11-17 13:00:39 +01:00
public Move common logic to share manager 2021-11-09 10:10:53 +01:00
autoloader.php Update php licenses 2021-06-04 22:02:41 +02:00
base.php Fix basic auth for OAuth token endpoint 2021-10-19 13:03:23 +02:00
versioncheck.php Use proper exit code 2021-10-03 21:51:45 +02:00