How about the following insead

```ruby 
return false unless header.cache_control   # no cache control header field means we can cache it

header.cache_control.include?('no-cache') || header.cache_control.include?('max-age=0')
```