diff --git a/Cache.md b/Cache.md index aca655f..8503e8a 100644 --- a/Cache.md +++ b/Cache.md @@ -11,14 +11,13 @@ Let's see their outline. `Cache` is a middleware that provides server-side cache functionality to the next handlers, can be used as: `app.Get("/", iris.Cache, aboutHandler)`. - `Cache` accepts one single parameter: the cache expiration duration. If the expiration is invalid value, <=2 seconds, then expiration is taken by the "cache-control's maxage" header All types of response can be cached, templates, json, text, anything. Use it for server-side caching, see the `Cache304` for an alternative approach that -might fit your needs the most. +may be more suited to your needs. ```go func Cache(expiration time.Duration) Handler