🐛 Add no cache instructions to streamer
Attempt to fix buffering issue when Cloudflare proxy is enabled
This commit is contained in:
@ -12,6 +12,8 @@ export const dynamic = 'force-dynamic'
|
|||||||
|
|
||||||
const responseHeaders = {
|
const responseHeaders = {
|
||||||
'Access-Control-Allow-Origin': '*',
|
'Access-Control-Allow-Origin': '*',
|
||||||
|
'Cache-Control': 'no-store, no-cache, must-revalidate, proxy-revalidate',
|
||||||
|
Pragma: 'no-cache',
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function OPTIONS() {
|
export async function OPTIONS() {
|
||||||
|
Reference in New Issue
Block a user