Skip to content

Commit

Permalink
Disable the lighthouse "bf-cache" rule
Browse files Browse the repository at this point in the history
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: puppeteer/puppeteer#8197
  • Loading branch information
albertkingLT committed Apr 14, 2023
1 parent 9c63d1a commit 0bc2519
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/lighthouserc.yml
Expand Up @@ -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:
Expand Down

0 comments on commit 0bc2519

Please sign in to comment.