From 541724e6fa2e5d0ad539d214bbebaeceab120e9b Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sun, 21 Jul 2019 01:27:07 +0300 Subject: [PATCH] minor --- Cache.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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