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
I just added a cache middleware in my project, and I just realize some case like if I've change the response how do i invalidate cache so it's reflect my new response.
example usecase:
app.get(
"*",
cache({
cacheName: "cacheProject",
cacheControl: "max-age=" + 60 * 60 * 12, // 12 hours
}),
);
app.get("/", async c => {
return c.json("Welcome To My Site");
});
and when I change the response of / how do I invalidate it right away?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I just added a cache middleware in my project, and I just realize some case like if I've change the response how do i invalidate cache so it's reflect my new response.
example usecase:
and when I change the response of
/how do I invalidate it right away?Beta Was this translation helpful? Give feedback.
All reactions