minor

Gerasimos (Makis) Maropoulos 2019-07-21 01:27:07 +03:00
parent ca02738962
commit 541724e6fa
No known key found for this signature in database
GPG Key ID: F169457BBDA4ACF4

@ -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