Search code examples
dnsgoogle-nativeclient

how to set pp::URLLoader to cache DNS forever


using Chrome's Native Client pp::URLLoader, is it possible to set the loader to cache the DNS forever, like curllib's CURLOPT_DNS_CACHE_TIMEOUT option (setting to -1 to cache the DNS record for ever.) http://curl.haxx.se/libcurl/c/CURLOPT_DNS_CACHE_TIMEOUT.html

Confirming 'No' is also very helpful!

Thank you


Solution

  • There is no way to control this. Here is the list of properties that can be set on a URLRequest.

    As I understand it, DNS caching for URLLoader requests is controlled entirely by the Chrome network stack. You can take a look at chrome://net-internals/#dns to see whether Chrome is caching the request.