Add bust_cache querystring variable

This commit is contained in:
Sebastian Martinez
2024-04-29 13:22:14 +02:00
parent aed7d3ce46
commit 0eab6dafa6
+5 -1
View File
@@ -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();