diff --git a/pages/api/index.ts b/pages/api/index.ts index 4f13f63..8798f47 100644 --- a/pages/api/index.ts +++ b/pages/api/index.ts @@ -160,6 +160,9 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) // Fetch password from remote file content if (authTokenPath !== '') { + // Don't server cached response for password protected folders + res.setHeader('Cache-Control', 'no-cache') + try { const token = await axios.get(`${apiConfig.driveApi}/root${encodePath(authTokenPath)}`, { headers: { Authorization: `Bearer ${accessToken}` },