Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add bust_cache querystring variable
Sebastian Martinez committed 2 years ago
commit 0eab6dafa65c3eaf32f5ec38b9c4b76aba8137c0
parent aed7d3ce4647699b2886a86cd86b3210c02e72ea
1 file changed +5 -1
modified httpd-client/lib/fetcher.ts
@@ -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();