Skip to content

Possibility to opt-in cache #511

@panghaoyuan

Description

@panghaoyuan

I have an old project of nextjs project.. Most of the pages of the project do not need caching. I only need to use this cache on a few pages. How to set the global setting to disable caching, I only need to enable caching on a few pages.
such as

axios.get('url', {
  cache: true,
});

or

axios.get('url', {
  cache: {
    open: true,
    ...otherOption
 },
});

how can i resolve this question

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions