aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/TitleBar/TitleBar.tsx
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-10-20 12:11:04 -0700
committerPinapelz <yukais@pinapelz.com>2025-10-22 12:18:54 -0700
commit18ba9ef9f35e8410bc50caf4820a9799a8dd0faa (patch)
tree0f868d6d5a1220fca24442dd2fcf6a72be42ffb6 /src/components/TitleBar/TitleBar.tsx
parent204e6d588626885c1585709a7cd6b6e9d36dc513 (diff)
add no-cache header to groups.json
Diffstat (limited to 'src/components/TitleBar/TitleBar.tsx')
-rw-r--r--src/components/TitleBar/TitleBar.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/TitleBar/TitleBar.tsx b/src/components/TitleBar/TitleBar.tsx
index 9ae8d1e..2ebd633 100644
--- a/src/components/TitleBar/TitleBar.tsx
+++ b/src/components/TitleBar/TitleBar.tsx
@@ -41,7 +41,12 @@ const TitleBar: React.FC<TitleBarProps> = ({
const fetchPhaseData = async () => {
const apiUrl = process.env.NEXT_PUBLIC_API_URL_TESTING;
try {
- const response = await fetch(apiUrl + "/groups.json");
+ const response = await fetch(apiUrl + "/groups.json", {
+ cache: 'no-store',
+ headers: {
+ 'Cache-Control': 'no-cache'
+ }
+ });
const data = await response.json();
setPhaseData(data);
const initialCollapsedState = Object.keys(data).reduce(
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage