Next.js Discord

Discord Forum

Caching a post request.. correctly

Unanswered
B33 underestimated me correct :( posted this in #help-forum
Open in Discord
Avatar
B33 underestimated me correct :(OP
Alright so i have this post route handler.. /addView which i wants to add a view once per day per unique user

So would i be able to cache it.. so that the backend gets only 1 request per day from a user?
It might lead to some issues with it being cached for everybody.. so i might get the user's ip.. and put that in an unstable cache as the cache key?

1 Reply

Avatar
B33 underestimated me correct :(OP
Bump :)