Skip to content

v1.2.0 - Guest Mode aware warming

Latest

Choose a tag to compare

@omerdocs omerdocs released this 20 Oct 16:41

Fixed

  • Sites without LiteSpeed Guest Mode no longer get uncached page renders. guest.vary.php hands out a guest vary cookie even when Guest Mode is off, but LiteSpeed never stores requests carrying it — so on those sites (LiteSpeed's default) every desktop and mobile "full" request was a full, uncached page render that warmed nothing. Measured on a shared host: 6 requests and ~34 s per URL before, 1–2 requests and ~1.5 s per URL now.
  • LSCW no longer crashes on start when rich isn't installed (ImportError: cannot import name 'Live', present since 1.1.0). rich is optional again, as documented.
  • Accept-Encoding advertises br only when brotli or brotlicffi is installed. Without a decoder a brotli-compressed body couldn't be read, which silently broke the HTML inspection (inline vary value, Guest Mode check).

Added

  • --vary {auto,on,off} (default auto): the vary-keyed phases run only when the page carries LiteSpeed's Guest Mode script — the same script that makes a real browser call guest.vary.php. on forces them, off disables them. Skipped phases are reported as off.
  • Guest Mode detection is reported per run (guest mode detected on X · not on Y).
  • Shared mobile copy detection: when the desktop request was a MISS and the mobile request right after it is already a HIT, the URL is reported as sharing one copy (LiteSpeed "Cache Mobile" off), with a hint to use --no-mobile.
  • requirements.txt; offline unit tests (python -m unittest discover -s tests -t .); GitHub Actions workflow running them on Linux and Windows.
  • Banner rows for vary and brotli.

Changed

  • --sitemap-ua now defaults to browser. A spoofed Googlebot is blocked wherever Googlebot is verified (reverse DNS, CDN verified-bot rules); --sitemap-ua googlebot is still available.
  • README: what each cache bucket depends on (Guest Mode, Cache Mobile), Windows commands (python / py instead of python3), virtual environment setup, new troubleshooting entries.

Full changelog: v1.1.0...v1.2.0