mirror of
https://github.com/iLay1678/i-tools.git
synced 2025-07-04 11:12:14 +08:00
Disable cache
This commit is contained in:
parent
ab2e9e873c
commit
c42da8e240
@ -7,7 +7,10 @@
|
||||
|
||||
|
||||
|
||||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`c3`](https://developers.cloudflare.com/pages/get-started/c3).
|
||||
# Docker部署教程
|
||||
```
|
||||
docker run -d -p 3000:3000 ghcr.io/ilay1678/alipan-tv-token:latest
|
||||
```
|
||||
|
||||
# Cloudflare Pages 部署教程
|
||||
|
||||
|
@ -21,6 +21,7 @@ export async function GET(request, { params }) {
|
||||
const tokenResponse = await fetch('http://api.extscreen.com/aliyundrive/v3/token', {
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
next: { revalidate: 0 }, // Disable cache
|
||||
body: JSON.stringify(sendData)
|
||||
});
|
||||
|
||||
|
@ -6,6 +6,7 @@ export async function POST() {
|
||||
const response = await fetch('http://api.extscreen.com/aliyundrive/qrcode', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
next: { revalidate: 0 }, // Disable cache
|
||||
body: JSON.stringify({
|
||||
scopes: ["user:base", "file:all:read", "file:all:write"].join(','),
|
||||
width: 500,
|
||||
|
@ -19,6 +19,7 @@ export async function POST(request) {
|
||||
|
||||
const response = await fetch('http://api.extscreen.com/aliyundrive/v3/token', {
|
||||
method: 'POST',
|
||||
next: { revalidate: 0 }, // Disable cache
|
||||
headers: headers,
|
||||
body: JSON.stringify(sendData)
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user