Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected caching strategy for /calendars/my/xxx #447

Open
dvcol opened this issue Mar 20, 2024 · 0 comments
Open

Unexpected caching strategy for /calendars/my/xxx #447

dvcol opened this issue Mar 20, 2024 · 0 comments

Comments

@dvcol
Copy link

dvcol commented Mar 20, 2024

Hello,

While other endpoints like /sync/history/ or/sync/watchlist/ are correctly cached as private, I've noticed that /calendars/my/ endpoints have a public caching strategy when I would expect data nested under the /my/ subpath to be segregated by user.

This leads to odd caching behaviors for my application where I support multiple concurrent signed-in users.

Is this expected behaviour?

This is not critical, as my current workaround is to invalidate cache on all of those calls (which could be further optimized by intelligently detecting which user is requesting by its token and strategically fetch with a reload strategy).

I would appreciate any input you could provide :)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant