mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 19:55: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;
|
proxy_cache_bypass $http_x_cache_bypass;
|
||||||
add_header X-Cache-Status $upstream_cache_status;
|
add_header X-Cache-Status $upstream_cache_status;
|
||||||
|
|
||||||
|
if ($http_accept !~ "application/json") {
|
||||||
|
proxy_no_cache 1;
|
||||||
|
}
|
||||||
|
|
||||||
location /api/vod/ {
|
location /api/vod/ {
|
||||||
proxy_pass http://frigate_api/vod/;
|
proxy_pass http://frigate_api/vod/;
|
||||||
include proxy.conf;
|
include proxy.conf;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user