This commit is contained in:
@@ -137,7 +137,7 @@ func (a *App) cacheMiddleware(next http.Handler) http.Handler {
|
||||
}
|
||||
|
||||
// Skip caching for authenticated endpoints that may have user-specific data
|
||||
if !a.isPublicEndpoint(r.URL.Path) {
|
||||
if !a.isPublicEndpoint(r.URL.Path, r.Method) {
|
||||
// Check if user is authenticated - if so, skip caching
|
||||
// In production, you might want per-user caching by including user ID in cache key
|
||||
if _, ok := getUserFromContext(r); ok {
|
||||
|
||||
Reference in New Issue
Block a user