diff --git a/docspace-viewer-request/index.mjs b/docspace-viewer-request/index.mjs index 6d5bedd..54ecbab 100644 --- a/docspace-viewer-request/index.mjs +++ b/docspace-viewer-request/index.mjs @@ -15,6 +15,7 @@ export const handler = async (event, context, callback) => { { const newurl = `https://${tenantDomain.replace('onlyoffice.io', 'teamlab.info')}${request.uri}?${request.querystring}`; console.log("redirect to: %s", newurl); + const response = { status: '302', statusDescription: 'Found', @@ -23,6 +24,10 @@ export const handler = async (event, context, callback) => { key: 'Location', value: newurl, }], + 'cache-control': [{ // Add cache-control header + key: 'Cache-Control', + value: 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0' + }], }, };