From 8e2232db35d8799c34d0c39599aacfaebb23f85f Mon Sep 17 00:00:00 2001 From: Islam Shehata Date: Mon, 16 Dec 2024 11:58:33 +0200 Subject: [PATCH] fix: set cache to no-store instead of no-cache This fix closes #246; Cloudflare doesn't support no-cache value so this change sets cache to 'no-store' instead. --- packages/js/package.json | 2 +- packages/js/src/fetchClient.ts | 2 +- packages/pino/package.json | 2 +- packages/winston/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/js/package.json b/packages/js/package.json index 9dd5e86..1ebeffb 100644 --- a/packages/js/package.json +++ b/packages/js/package.json @@ -1,7 +1,7 @@ { "name": "@axiomhq/js", "description": "The official javascript bindings for the Axiom API", - "version": "1.3.0", + "version": "1.3.1", "author": "Axiom, Inc.", "license": "MIT", "contributors": [ diff --git a/packages/js/src/fetchClient.ts b/packages/js/src/fetchClient.ts index 8f3d0b3..1353d25 100644 --- a/packages/js/src/fetchClient.ts +++ b/packages/js/src/fetchClient.ts @@ -29,7 +29,7 @@ export class FetchClient { method, body: init.body ? init.body : undefined, signal: AbortSignal.timeout(timeout), - cache: 'no-cache', + cache: 'no-store', }); if (resp.status === 204) { diff --git a/packages/pino/package.json b/packages/pino/package.json index 805df04..b43a054 100644 --- a/packages/pino/package.json +++ b/packages/pino/package.json @@ -1,6 +1,6 @@ { "name": "@axiomhq/pino", - "version": "1.3.0", + "version": "1.3.1", "description": "The official Axiom transport for Pino", "type": "module", "types": "dist/esm/types/index.d.ts", diff --git a/packages/winston/package.json b/packages/winston/package.json index cfbcf5e..b00e344 100644 --- a/packages/winston/package.json +++ b/packages/winston/package.json @@ -1,7 +1,7 @@ { "name": "@axiomhq/winston", "description": "The official Axiom transport for winston logger", - "version": "1.3.0", + "version": "1.3.1", "type": "module", "types": "dist/esm/types/index.d.ts", "module": "dist/esm/index.js",