diff --git a/smalltrip/middleware/cache.go b/smalltrip/middleware/cache.go index b7aef61..a448fd6 100644 --- a/smalltrip/middleware/cache.go +++ b/smalltrip/middleware/cache.go @@ -22,6 +22,11 @@ func Cache(options ...CacheOption) Middleware { } } +// TODO: SmartCache is a smarter implementation of Cache that handles requests +// with authorization, Cache-Control from the client, and others. +func SmartCache(options ...CacheOption) Middleware { + return Cache(options...) +} type CacheOption func(*directives)