Skip to content

Commit f531be5

Browse files
authored
Pass no-cache to the slack channels request (#934)
No cache for slack channels request
1 parent acbbe9f commit f531be5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/full-monkeys-bake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/integration-slack': minor
3+
---
4+
5+
Don't cache slack channels request

integrations/slack/src/router.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export const handleFetchEvent: FetchEventCallback = async (request, context) =>
129129
return new Response(JSON.stringify(completions), {
130130
headers: {
131131
'Content-Type': 'application/json',
132+
'Cache-Control': 'no-cache',
132133
},
133134
});
134135
});

0 commit comments

Comments
 (0)