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
▶ http PATCH :3000/api/users/f333c88b-46ae-436b-b91b-a8994bf8aa35 isActive:=false
HTTP/1.1 200 OK
{
...
"isActive": false,
...
}
~
▶ http PATCH :3000/api/users/f333c88b-46ae-436b-b91b-a8994bf8aa35 isActive:=true
HTTP/1.1 200 OK
{
...
"isActive": false, <-- this should be true, but is returned from cache
...
}
~
▶ http GET :3000/api/users/f333c88b-46ae-436b-b91b-a8994bf8aa35
HTTP/1.1 200 OK
{
...
"isActive": true,
...
}
PUT seems to not be affected by this issue.
The text was updated successfully, but these errors were encountered:
Indeed I got the same issue, when update or delete the code get the resource first, then update or delete it and get the resource again. The cache should only be use for HTTP GET method.
It looks like GET requests are cached, so when performing a PATCH request, it modifies the db row, but then returns the result from cache.
PUT
seems to not be affected by this issue.The text was updated successfully, but these errors were encountered: