mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 04:05:26 +03:00
Only cache json requests
This commit is contained in:
parent
2b2c831253
commit
b78a3b975f
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user