fix cache-expires-ineffassign
@@ -427,8 +427,9 @@ func CacheExpires(r *http.Response) time.Time {
lifetime, err := time.ParseDuration(maxAge + "s")
if err != nil {
expires = now
- }
+ } else {
expires = now.Add(lifetime)
+ }
} else {
expiresHeader := r.Header.Get("Expires")
if expiresHeader != "" {
