diff --git a/components/brave_ads/browser/ads_tab_helper.cc b/components/brave_ads/browser/ads_tab_helper.cc index 92c39b41db75..47d6dc309328 100644 --- a/components/brave_ads/browser/ads_tab_helper.cc +++ b/components/brave_ads/browser/ads_tab_helper.cc @@ -59,16 +59,10 @@ AdsTabHelper::~AdsTabHelper() { void AdsTabHelper::DidFinishNavigation( content::NavigationHandle* navigation_handle) { - if (navigation_handle->IsInMainFrame() && - navigation_handle->GetResponseHeaders()) { - if (navigation_handle->GetResponseHeaders()->HasHeaderValue( - "cache-control", "no-store")) { - run_distiller_ = false; - } else { - bool was_restored = - navigation_handle->GetRestoreType() != content::RestoreType::NONE; - run_distiller_ = !was_restored; - } + if (navigation_handle->IsInMainFrame()) { + bool was_restored = + navigation_handle->GetRestoreType() != content::RestoreType::NONE; + run_distiller_ = !was_restored; } } diff --git a/vendor/brave-ios/BATBraveRewards.h b/vendor/brave-ios/BATBraveRewards.h index a782ce1fee37..66adc4a3da3a 100644 --- a/vendor/brave-ios/BATBraveRewards.h +++ b/vendor/brave-ios/BATBraveRewards.h @@ -94,8 +94,7 @@ NS_SWIFT_NAME(BraveRewards) /// Report that a page has loaded in the current browser tab, and the HTML is available for analysis /// /// @note Send nil for `adsInnerText` if the load happened due to tabs restoring -/// after app launch or if response header for the page load contains -/// "cache-control: no-store" +/// after app launch - (void)reportLoadedPageWithURL:(NSURL *)url faviconURL:(nullable NSURL *)faviconURL tabId:(UInt32)tabId