From e80ad6427b056c5f4c977452282ab2134f815f8d Mon Sep 17 00:00:00 2001 From: "darin%netscape.com" Date: Wed, 4 Dec 2002 04:21:10 +0000 Subject: [PATCH] fixes bug 173426 "prefetch service should set LOAD_ONLY_IF_MODIFIED flag" r=gagan sr=bzbarsky --- uriloader/prefetch/nsPrefetchService.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/uriloader/prefetch/nsPrefetchService.cpp b/uriloader/prefetch/nsPrefetchService.cpp index 9a8d7329d809..003ac6fff489 100644 --- a/uriloader/prefetch/nsPrefetchService.cpp +++ b/uriloader/prefetch/nsPrefetchService.cpp @@ -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