mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
Merge branch 'main' of github.com:spencerwooo/onedrive-vercel-index into stale-while-revalidate-59
This commit is contained in:
@@ -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}` },
|
||||
|
||||
Reference in New Issue
Block a user