In-memory Cache
type DirCacheOptions struct {
// Enable or disable cache.
Enable bool
// Minimum content size for compression in bytes.
CompressMinSize int64
// Ignore compress files that match this pattern.
CompressIgnore *regexp.Regexp
// The available sever's encodings to be
// negotiated with the client's needs,
// common values: gzip, br.
Encodings []string
// If greater than zero then prints
// information about cached files to the stdout.
// If it's 1 then it prints
// only the total cached and after-compression
// reduced file sizes.
// If it's 2 then it prints it per file too.
Verbose uint8
}Last updated
Was this helpful?