From 0fb22f564722ae5522d9ac35b02eeb988fd4c201 Mon Sep 17 00:00:00 2001 From: christian Date: Wed, 19 Jun 2024 20:33:59 +0200 Subject: [PATCH] no store for jobs fetch --- src/app/ITJobbank.tsx | 4 +++- src/app/TheHub.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/ITJobbank.tsx b/src/app/ITJobbank.tsx index 7df1d05..1c99aa0 100644 --- a/src/app/ITJobbank.tsx +++ b/src/app/ITJobbank.tsx @@ -21,7 +21,9 @@ interface JobPosting { } async function fetchJobs(): Promise { - const response = await fetch("http://51.20.250.24/jobs/itjobbank"); + const response = await fetch("http://51.20.250.24/jobs/itjobbank", { + cache: "no-store", + }); if (!response.ok) { throw new Error("Failed to fetch jobs"); } diff --git a/src/app/TheHub.tsx b/src/app/TheHub.tsx index 4de981c..99d904f 100644 --- a/src/app/TheHub.tsx +++ b/src/app/TheHub.tsx @@ -21,7 +21,9 @@ interface JobPosting { } async function fetchJobs(): Promise { - const response = await fetch("http://51.20.250.24/jobs/hub"); + const response = await fetch("http://51.20.250.24/jobs/hub", { + cache: "no-store", + }); if (!response.ok) { throw new Error("Failed to fetch jobs"); }