Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
Skipper middleware.Skipper
// contains filtered or unexported fields
}
Middleware is a middleware that sets the Cache-Control header (no-cache or max-age) for the given request URLs. Use MaxAge or NoCache to create a new instance.
func MaxAge ¶
func MaxAge(maxAge time.Duration, requestURLs ...string) Middleware
MaxAge creates a new middleware that sets the Cache-Control header to the given max-age for the given request URLs.
func NoCache ¶
func NoCache(requestURLs ...string) Middleware
NoCache creates a new middleware that sets the Cache-Control header to no-cache for the given request URLs.
func (Middleware) Handle ¶
func (m Middleware) Handle(next echo.HandlerFunc) echo.HandlerFunc
Click to show internal directories.
Click to hide internal directories.