Loading dom/base/nsContentUtils.cpp +17 −0 Original line number Diff line number Diff line Loading @@ -12196,6 +12196,23 @@ nsContentUtils::GetSubresourceCacheValidationInfo(nsIRequest* aRequest, if (!info.mMustRevalidate) { Unused << httpChannel->IsNoCacheResponse(&info.mMustRevalidate); } if (!info.mMustRevalidate) { nsAutoCString vary; (void)httpChannel->GetResponseHeader("vary"_ns, vary); info.mMustRevalidate = [&] { for (const nsACString& token : nsCCharSeparatedTokenizer(vary, ',').ToRange()) { if (token.EqualsLiteral("*")) { return true; } if (token.EqualsIgnoreCase("cookie")) { return true; } } return false; }(); } } // data: URIs are safe to cache across documents under any circumstance, so we Loading Loading
dom/base/nsContentUtils.cpp +17 −0 Original line number Diff line number Diff line Loading @@ -12196,6 +12196,23 @@ nsContentUtils::GetSubresourceCacheValidationInfo(nsIRequest* aRequest, if (!info.mMustRevalidate) { Unused << httpChannel->IsNoCacheResponse(&info.mMustRevalidate); } if (!info.mMustRevalidate) { nsAutoCString vary; (void)httpChannel->GetResponseHeader("vary"_ns, vary); info.mMustRevalidate = [&] { for (const nsACString& token : nsCCharSeparatedTokenizer(vary, ',').ToRange()) { if (token.EqualsLiteral("*")) { return true; } if (token.EqualsIgnoreCase("cookie")) { return true; } } return false; }(); } } // data: URIs are safe to cache across documents under any circumstance, so we Loading