API folder/{id} call twice when login #6594
Replies: 1 comment
-
The issue you're experiencing seems to be related to how the application handles API requests and caching, particularly when switching between users. Here's a breakdown of the relevant information:
To address the issue, you might want to investigate the caching settings in your browser and the application's caching logic, especially in the pip-installed version. Additionally, reviewing the interceptor logic and how it interacts with the folder API endpoint could provide insights into why the API call is made twice. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
I realize when i login user_2 after logout user_1. API .../folder/{id_folder_user_1} is call first, and then API .../folder/{id_folder_user_2} is call. At that time browser will caching API .../folder/{id_folder_user_1} .This leads to when i login user_1 again the browser is call API .../folder/{id_folder_user_1} with status "200 (from disk cache)" but not thing in the response
In the image i build from source so that i don't known why API .../folder/{id_folder_user_1} is not caching. This lead to not reproduction bug. But if I pip install lib and run, the above error will occur.

Beta Was this translation helpful? Give feedback.
All reactions