mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
fixes bug 173426 "prefetch service should set LOAD_ONLY_IF_MODIFIED flag"
r=gagan sr=bzbarsky
This commit is contained in:
parent
a736085beb
commit
e80ad6427b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user