enable media cache better

Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Cadey Ratio 2022-11-04 20:41:10 -04:00
parent dec40a59f7
commit 79b5706c7b
1 changed files with 1 additions and 4 deletions

View File

@ -86,10 +86,7 @@ in {
extraConfig = '' extraConfig = ''
proxy_cache akkoma_media_cache; proxy_cache akkoma_media_cache;
# Cache objects in slices of 1 MiB proxy_cache_key $host$uri$is_args$args;
slice 1m;
proxy_cache_key $host$uri$is_args$args$slice_range;
proxy_set_header Range $slice_range;
# Decouple client and upstream requests # Decouple client and upstream requests
proxy_buffering on; proxy_buffering on;