mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 09:57:01 +00:00
new handlers for client (i.e browser) catching: cache.NoCache and cache.StaticCache including tests
Former-commit-id: 18975297c8b96c7f9d5ff757f92051f6b10933c1
This commit is contained in:
6
cache/cache.go
vendored
6
cache/cache.go
vendored
@@ -65,9 +65,3 @@ func Handler(expiration time.Duration) context.Handler {
|
||||
h := Cache(expiration).ServeHTTP
|
||||
return h
|
||||
}
|
||||
|
||||
var (
|
||||
// NoCache disables the cache for a particular request,
|
||||
// can be used as a middleware or called manually from the handler.
|
||||
NoCache = client.NoCache
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user