Skip to content

Commit 650e909

Browse files
authored
Pass no-store to the slack channels request (#935)
* Pass no-store to the slack channels request * changeset
1 parent 924723e commit 650e909

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/icy-parrots-fry.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+
Update slack cache header

bun.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
},
240240
"integrations/hubspot-conversations": {
241241
"name": "@gitbook/integration-hubspot-conversations",
242-
"version": "0.0.1",
242+
"version": "0.1.0",
243243
"dependencies": {
244244
"@gitbook/api": "*",
245245
"@gitbook/runtime": "*",
@@ -507,7 +507,7 @@
507507
},
508508
"integrations/slack": {
509509
"name": "@gitbook/integration-slack",
510-
"version": "2.2.0",
510+
"version": "2.3.0",
511511
"dependencies": {
512512
"@gitbook/api": "*",
513513
"@gitbook/runtime": "*",

integrations/slack/src/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +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',
132+
'Cache-Control': 'no-cache, no-store',
133133
},
134134
});
135135
});

0 commit comments

Comments
 (0)