Repository navigation
Conversation
|
Review of #1358. I read the diff and grepped for other uses of the renamed collector id. I did not run the tests.
The collector-id rename is a reasonable way to invalidate stale cache entries. I found no remaining references that depend on the old id other than that comment and test fixtures. The docs and the CHANGELOG entry are present. I found no high-severity issues. |
…tions when the pages carry its script #605 Signed-off-by: Nik Cubrilovic <[email protected]>
…g for Bot Fight Mode plans #605 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
feat/jsd-note-605
branch
from
October 30, 2026 19:21
bac185c to
ea971ff
Compare
|
Review of #1358: no blocking problems found. I read the diff but did not run the tests.
Docs and CHANGELOG are updated. Docs: updated. Skill: none. |
Contributor
Author
|
Landed in v0.0.145 as nik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #605
perf/bad-caching's validator note now names Cloudflare JavaScript Detections when the pages carry its script.hasJavaScriptDetections(doc)in@squirrelscan/utils/cdn: a<script>that sets__CF$cv$params, references/cdn-cgi/challenge-platform/inline, or loads it assrc. Text that only mentions the path (visible text,<pre>) does not count. Bounded: at most 60 scripts per page, 2,048 characters of each.edgeMarkers("cf-jsd"), computed once per page from the live DOM inbuildCollectedPageSignal; the resident engine (squirrel analyze) reads the document directly, so both engines agree.details.javascriptDetectionsPages); Cloudflare pages without the marker keep the headers-only note.site-dom-signals-v2, so every older cache entry is a miss and each site's first audit after the upgrade runs fresh once (CHANGELOG says so).Tests (
bad-caching.test.ts, both engines): half or more with the marker names it, no marker keeps the headers-only note, fewer than half does not, path in visible text/<pre>does not count, external challenge-platform script counts, and a 1 MB script and 40,000 script tags finish in under 100 ms (the marker past the 2,048-character window of a huge script is not found: documented bound). rule-cache and golden suites pass.Docs
docs/rules/perf/bad-caching.mdx; CHANGELOG under Unreleased. Skill: none.