disable cache

This commit is contained in:
b1ek 2024-11-11 20:52:00 +10:00
parent b900d4c28b
commit cec41d9cbb
Signed by: blek
GPG Key ID: A622C22C9BC616B2
2 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,8 @@ export class DataRow {
static async find(options?: DataRowSearchOptions): Promise<DataRow[]> {
const req = await ky('/api/data/list', {
searchParams: options
searchParams: options,
cache: 'no-cache'
});
const raw = await req.json<any[]>();

View File

@ -20,7 +20,7 @@ export class DataRowSelection {
}
async get(): Promise<DataRow[]> {
const req = await ky('/api/selection', { method: 'GET' });
const req = await ky('/api/selection', { method: 'GET', cache: 'no-cache' });
const data = await req.json();
if (!(data instanceof Array)) throw new Array('API returned invalid data');
return data.map(DataRow.reviveJSON)