cache.go
Function judgeResponseShouldCacheOrNot
has 7 return statements (exceeds 4 allowed). Open
Open
func judgeResponseShouldCacheOrNot(req *http.Request,
statusCode int,
respHeaders http.Header,
privateCache bool) ([]cacheobject.Reason, time.Time, []cacheobject.Warning, *cacheobject.Object, error) {
Function getCacheStatus
has 7 return statements (exceeds 4 allowed). Open
Open
func getCacheStatus(req *http.Request, response *Response, config *Config) (bool, time.Time) {
// NOTE: it seems that we can remove lock timeout
if response.Code == http.StatusPartialContent || response.snapHeader.Get("Content-Range") != "" {
return false, now().Add(config.LockTimeout)
}
TODO found Open
Open
// TODO: how to handle when the bucket's num is changed
- Exclude checks
TODO found Open
Open
// TODO: Maybe we can redesign here to get a better performance
- Exclude checks