Some oneboxes may fail if when making excessive and/or odd requests against the target domains. This change provides a simple mechanism to cache the results of succesful GET requests as part of the oneboxing process, with the goal of reducing repeated requests and ultimately improving the rate of successful oneboxing.
Add the domains you’re interesting in caching to
SiteSetting. cache_onebox_response_body_domains e.g.
SiteSetting.cache_onebox_user_agent to a user agent string of your choice to use when making requests against domains in the above list.