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",
|
||||
credentials: "include",
|
||||
// Next.js
|
||||
next: {
|
||||
revalidate: 1,
|
||||
},
|
||||
cache: 'no-store'
|
||||
};
|
||||
if (data) {
|
||||
options.body = JSON.stringify(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue