From 21495998cf37f0a87d4e9afbb88638a679ec0268 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Mon, 24 Feb 2025 08:04:49 -0300 Subject: [PATCH] feat(smalltrip): TODO SmartCache middlware --- middleware/cache.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/middleware/cache.go b/middleware/cache.go index b7aef61..a448fd6 100644 --- a/middleware/cache.go +++ b/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)