implement nginx caching (#8333)

* implement nginx caching

* bypass cache from frigate frontend, reduce to 5s

* set cache time to 2s

* cache 200s for 5s

* exclude vod endpoints from cache
This commit is contained in:
Blake Blackshear authored and GitHub committed 2023-10-29 06:47:24 -05:00
1 parent cd64399fe5
commit 159fb51518
2 files changed
+16

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ import axios from 'axios';
axios.defaults.baseURL = `${baseUrl}api/`;
axios.defaults.headers.common = {
'X-CSRF-TOKEN': 1,
'X-CACHE-BYPASS': 1,
};
export function ApiProvider({ children, options }) {