You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have used KY in a project where I defined a single api file and handled most of the CRUD calls in there, also added token to the header which is great, everything works fine but when I want to pass down some nextjs cache options to handle caching I get a bit of headache.
I tried passing options parametres, I can see it is passing, I can see options as {cache: "force-cache"}, and I event tried {next: cache: "force-cache"} but I could not change any caching headers in the production, it is always the same.
Any insight how can I make it work?
The text was updated successfully, but these errors were encountered:
Hello, I have used KY in a project where I defined a single api file and handled most of the CRUD calls in there, also added token to the header which is great, everything works fine but when I want to pass down some nextjs cache options to handle caching I get a bit of headache.
Here is a simple flow of my app;
Example Server Action;
Example parametre service;
From the above parametre service, I make use of api.get;
Here is the api.ts, I am excluding some stuff for brevity;
I tried passing options parametres, I can see it is passing, I can see options as {cache: "force-cache"}, and I event tried {next: cache: "force-cache"} but I could not change any caching headers in the production, it is always the same.
Any insight how can I make it work?
The text was updated successfully, but these errors were encountered: