From 0bc2519e51c825c0fa778f3d86b15e23468c5883 Mon Sep 17 00:00:00 2001 From: albertking113 Date: Fri, 14 Apr 2023 16:00:27 -0400 Subject: [PATCH] Disable the lighthouse "bf-cache" rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Puppeteer disables the bfcache by default due to a bug where the page freezes. Puppeteer scripts won’t restore the page from bfcache even if real users would see the page restored from bfcache. See: https://github.com/puppeteer/puppeteer/issues/8197 --- frontend/lighthouserc.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/lighthouserc.yml b/frontend/lighthouserc.yml index f9772c3..29ef2a2 100644 --- a/frontend/lighthouserc.yml +++ b/frontend/lighthouserc.yml @@ -39,6 +39,10 @@ ci: - aggregationMethod: pessimistic # for subcategories of the main audit categories above, adjust assertions as desired below (these arbitrary examples set subcategories to return warnings instead of errors): # customize selected assertions for performance + bf-cache: + # Puppeteer disables the bfcache by default due to a bug where the page freezes. Puppeteer scripts won’t restore the page from bfcache even if real users would see the page restored from bfcache. + # See https://github.com/puppeteer/puppeteer/issues/8197 + - "off" aria-valid-attr-value: - warn button-name: