forked from Github/frigate
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:
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user