diff options
| author | Mia Herkt <mia@0x0.st> | 2022-11-20 16:54:46 +0100 |
|---|---|---|
| committer | Mia Herkt <mia@0x0.st> | 2022-11-20 16:54:46 +0100 |
| commit | b5f0cfdf6f9d621fd83a054375e50e7a4c9e42de (patch) | |
| tree | 3f542a42586135a037d3072b99e9840526500e3c | |
| parent | 4ba18146e192730da0ae4707163ccfdc3851011e (diff) | |
README: Clarify why serving file requests from the app is bad
| -rw-r--r-- | README.rst | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -30,8 +30,10 @@ where ``/up`` is whatever you’ve configured as ``FHOST_STORAGE_PATH``. For all other servers, set ``FHOST_USE_X_ACCEL_REDIRECT`` to ``False`` and ``USE_X_SENDFILE`` to ``True``, assuming your server supports this. -Otherwise, Flask will serve the file with chunked encoding, which sucks and -should be avoided at all costs. +Otherwise, Flask will serve the file with chunked encoding, which has several +downsides, one of them being that range requests will not work. This is a +problem for example when streaming media files: It won’t be possible to seek, +and some ISOBMFF (MP4) files will not play at all. To make files expire, simply create a cronjob that runs ``cleanup.py`` every now and then. |
