From aa93d4fbdd9f322e509799dc5bd522f8b6c1825a Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 9 Nov 2023 15:09:25 -0700 Subject: [PATCH] Fix nginx cache (#8558) --- docker/main/rootfs/usr/local/nginx/conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf index 925168463..1d3b80de3 100644 --- a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf +++ b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf @@ -34,7 +34,7 @@ http { proxy_cache_path /dev/shm/nginx_cache levels=1:2 keys_zone=api_cache:10m max_size=10m inactive=1m use_temp_path=off; - map $http_accept $should_not_cache { + map $sent_http_content_type $should_not_cache { 'application/json' 0; default 1; } @@ -261,4 +261,4 @@ rtmp { meta copy; } } -} \ No newline at end of file +}