mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 04:54:17 +02:00
Add cache key identity note to middleware docs
This commit is contained in:
parent
b14b137fdd
commit
62804e2f06
1 changed files with 4 additions and 0 deletions
|
|
@ -431,6 +431,10 @@ mcp.add_middleware(ResponseCachingMiddleware(
|
|||
|
||||
See [Storage Backends](/servers/storage-backends) for complete options.
|
||||
|
||||
<Note>
|
||||
Cache keys are based on the operation name and arguments only — they do not include user or session identity. If your tools return user-specific data derived from auth context (e.g., headers or session state) rather than from the request arguments, you should either disable caching for those tools or ensure user identity is part of the tool arguments.
|
||||
</Note>
|
||||
|
||||
### Rate Limiting
|
||||
|
||||
```python
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue