Skip to content

Commit 18b5578

Browse files
committed
docs: Remove noStore example, encourage NoHttpCache instead
- HttpCache is for configuring cache control, not disabling it - NoHttpCache is the dedicated attribute for disabling cache - Keep HttpCache examples focused on actual cache configuration - Better separation of concerns between attributes
1 parent 8015dd2 commit 18b5578

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src-annotation/HttpCache.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
*
1818
* Example:
1919
* ```php
20-
* // Disable caching (most common use case)
21-
* #[HttpCache(noStore: true)]
22-
* // Or use #[NoHttpCache] for simplicity
23-
*
2420
* // Cache for 1 hour
2521
* #[HttpCache(maxAge: 3600)]
2622
*
@@ -32,6 +28,8 @@
3228
*
3329
* // CDN cache for 1 hour, browser cache for 5 minutes
3430
* #[HttpCache(maxAge: 300, sMaxAge: 3600)]
31+
*
32+
* // For disabling cache, use #[NoHttpCache] instead
3533
* ```
3634
*
3735
* Interceptors bound:

0 commit comments

Comments
 (0)