diff --git a/content/base/src/nsDocument.cpp b/content/base/src/nsDocument.cpp index 3fbb9e9dae2a..4b45bafedadd 100644 --- a/content/base/src/nsDocument.cpp +++ b/content/base/src/nsDocument.cpp @@ -4377,7 +4377,10 @@ nsDocument::RetrieveRelevantHeaders(nsIChannel *aChannel) } } - if (mLastModified.IsEmpty()) { + if (mLastModified.IsEmpty() && LL_IS_ZERO(modDate)) { + // We got nothing from our attempt to ask nsIFileChannel and + // nsIHttpChannel for the last modified time. Return the current + // time. modDate = PR_Now(); }