Documentation
¶
Index ¶
Constants ¶
View Source
const ( // HeaderCacheControl as in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control HeaderCacheControl = "Cache-Control" // HeaderExpires as in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires HeaderExpires = "Expires" // HeaderLastModified as in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified HeaderLastModified = "Last-Modified" // HeaderIfModifiedSince as in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since HeaderIfModifiedSince = "If-Modified-Since" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pragma ¶
type Pragma struct {
IfModifiedSince time.Time
LastModified time.Time
NoCache bool
MaxAge time.Duration
Expires time.Time
}
Pragma handle pragmatic information/directives for caching
func CreatePragma ¶
CreatePragma to create new instance of CacheControl from request
type Store ¶
Store ...
func (*Store) Middleware ¶
func (s *Store) Middleware(next echo.HandlerFunc) echo.HandlerFunc
Middleware ...
Click to show internal directories.
Click to hide internal directories.