Fixing bug 268844. Don't force the cache to be bypassed for non-multipart requests. r=bzbarsky@mit.edu, sr=darin@meer.net

This commit is contained in:
jst%mozilla.jstenback.com 2004-11-11 19:44:33 +00:00
Родитель 471617b8f8
Коммит bcd4e3ee61
1 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -1525,16 +1525,17 @@ nsXMLHttpRequest::Send(nsIVariant *aBody)
if (!listener) {
return NS_ERROR_OUT_OF_MEMORY;
}
// Bypass the network cache since caching makes no sense with
// multipart mixed replace documents.
nsLoadFlags flags;
mChannel->GetLoadFlags(&flags);
flags |= nsIRequest::LOAD_BYPASS_CACHE | nsIRequest::INHIBIT_CACHING;
mChannel->SetLoadFlags(flags);
} else {
listener = this;
}
// Bypass the network cache.
nsLoadFlags flags;
mChannel->GetLoadFlags(&flags);
flags |= nsIRequest::LOAD_BYPASS_CACHE | nsIRequest::INHIBIT_CACHING;
mChannel->SetLoadFlags(flags);
// Start reading from the channel
ChangeState(XML_HTTP_REQUEST_SENT);
rv = mChannel->AsyncOpen(listener, nsnull);