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
2023-10-29 07:47:24 -04:00
committed by GitHub
parent cd64399fe5
commit 159fb51518
2 changed files with 16 additions and 0 deletions

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 }) {