Skip to content

Commit 8d0aef0

Browse files
committed
readme updates
1 parent d6b4d2e commit 8d0aef0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -793,16 +793,17 @@ AuthKit automatically implements cache security measures to protect against sess
793793
794794
The library automatically sets appropriate cache headers on all authenticated requests:
795795
796-
- `Cache-Control: private, no-cache, no-store, must-revalidate` - Prevents CDN caching of authenticated responses
796+
- `Cache-Control: private, no-store` - Prevents CDN caching of authenticated responses
797797
- `Vary: Cookie` - Ensures CDNs differentiate between different users
798+
- `CDN-Cache-Control: no-store` - Additional protection for CloudFront and Vercel
799+
- `x-middleware-cache: no-cache` - Prevents middleware result caching (OpenNext/SST)
798800
- `Pragma: no-cache` - HTTP/1.0 compatibility
799801
800802
These headers are applied automatically when:
801803
802-
- A session cookie is present
804+
- A session cookie is present in the request
803805
- An Authorization header is detected
804-
- Requests are made to auth routes (`/api/auth/*`, `/callback`)
805-
- Active authenticated sessions exist
806+
- An active authenticated session exists
806807
807808
#### Performance Considerations
808809

0 commit comments

Comments
 (0)