mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Add bust_cache querystring variable
This commit is contained in:
@@ -91,7 +91,11 @@ export class Fetcher {
|
||||
params: FetchParams,
|
||||
schema: T,
|
||||
): Promise<TypeOf<T>> {
|
||||
const response = await this.fetch(params);
|
||||
const response = await this.fetch({
|
||||
...params,
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
query: { ...params.query, bust_cache: "1" },
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
let responseBody = await response.text();
|
||||
|
||||
Reference in New Issue
Block a user