fixes bug 173426 "prefetch service should set LOAD_ONLY_IF_MODIFIED flag"

r=gagan sr=bzbarsky
This commit is contained in:
darin%netscape.com 2002-12-04 04:21:10 +00:00
parent a736085beb
commit e80ad6427b

View File

@ -284,8 +284,10 @@ nsPrefetchService::ProcessNextURI()
//
// if opening the channel fails, then just skip to the next uri
//
rv = NS_NewChannel(getter_AddRefs(mCurrentChannel), uri, nsnull, nsnull,
nsnull, nsIRequest::LOAD_BACKGROUND);
rv = NS_NewChannel(getter_AddRefs(mCurrentChannel), uri,
nsnull, nsnull, nsnull,
nsIRequest::LOAD_BACKGROUND |
nsICachingChannel::LOAD_ONLY_IF_MODIFIED);
if (NS_FAILED(rv)) continue;
// configure HTTP specific stuff