':param response: The http response we want to extract the information
from.
:return: A list with the headers and meta tag information used to
configure the browser cache control.'

def _get_cache_control(self, response):

    res = []
    cache_control_headers = self.SAFE_CONFIG.keys()
    headers = response.get_headers()
    for _type in cache_control_headers:
        (header_value, _) = headers.iget(_type, None)
        if (header_value is not None):
            res.append(CacheSettings(_type, header_value.lower()))
    try:
        doc_parser = parser_cache.dpc.get_document_parser_for(response)
    except BaseFrameworkException:
        pass
    else:
        for meta_tag in doc_parser.get_meta_tags():
            header_name = meta_tag.get('http-equiv', None)
            header_value = meta_tag.get('content', None)
            if ((header_name is not None) and (header_value is not None)):
                header_name = header_name.lower()
                header_value = header_value.lower()
                if (header_name in cache_control_headers):
                    res.append(CacheSettings(header_name, header_value))
    return res
