Improved code for session handler and cache_response to set session params to proper default values that won't cause errors if the session handler is from requests and not from cachecontrol itself plus we check for instance of int on cache_max_age just to be safe