mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: use cache no store on requests
This commit is contained in:
parent
d8aec2b9b4
commit
97c540bcca
1 changed files with 1 additions and 3 deletions
|
|
@ -9,9 +9,7 @@ export const RequestBody = (method: string, data: any) => {
|
||||||
redirect: "follow",
|
redirect: "follow",
|
||||||
credentials: "include",
|
credentials: "include",
|
||||||
// Next.js
|
// Next.js
|
||||||
next: {
|
cache: 'no-store'
|
||||||
revalidate: 1,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
if (data) {
|
if (data) {
|
||||||
options.body = JSON.stringify(data);
|
options.body = JSON.stringify(data);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue