Skip to content

Commit

Permalink
fix: 🐛 do not cache past and upcoming lists
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck authored and ManAnRuck committed Sep 22, 2024
1 parent 658f6bf commit 7038e1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bundestag.io/admin/src/app/list/past/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async function getData(): Promise<IProcedure[]> {
const res = await fetch('http://procedures/procedures/list/past', {
headers: {
'Cache-Control': 'no-cache',
cache: 'no-store',
},
});

Expand Down
1 change: 1 addition & 0 deletions bundestag.io/admin/src/app/list/upcoming/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async function getData(): Promise<IProcedure[]> {
const res = await fetch('http://procedures/procedures/list/upcoming', {
headers: {
'Cache-Control': 'no-cache',
cache: 'no-store',
},
});

Expand Down

0 comments on commit 7038e1b

Please sign in to comment.