Only cache json requests

This commit is contained in:
Nick Mowen 2023-11-07 12:35:11 -07:00
parent 2b2c831253
commit b78a3b975f

View File

@ -194,6 +194,10 @@ http {
proxy_cache_bypass $http_x_cache_bypass;
add_header X-Cache-Status $upstream_cache_status;
if ($http_accept !~ "application/json") {
proxy_no_cache 1;
}
location /api/vod/ {
proxy_pass http://frigate_api/vod/;
include proxy.conf;