Skip to content

Commit ae2efba

Browse files
committed
docs: Remove misleading no-cache example from HttpCache
- Remove example combining noCache and noStore (common misuse) - Keep simple reference to use NoHttpCache for no-caching scenarios - Avoid confusion between no-cache (revalidate) and no-store (don't cache)
1 parent cea6aa1 commit ae2efba

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src-annotation/HttpCache.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
* // Private cache with revalidation
2424
* #[HttpCache(isPrivate: true, mustRevalidate: true, maxAge: 60)]
2525
*
26-
* // No caching (use NoHttpCache instead for simplicity)
27-
* #[HttpCache(noCache: true, noStore: true)]
26+
* // For no caching, use #[NoHttpCache] instead
2827
* ```
2928
*
3029
* Interceptors bound:

0 commit comments

Comments
 (0)