You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 14, 2026. It is now read-only.
Repository navigation
Commit 532455c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(tokowaka-client): merge WAF classification into checkEdgeOptimizeStatus, fix Imperva false-positive
- checkEdgeOptimizeStatus now classifies the same response it already
fetches for a WAF/bot-block, so edgeOptimizeEnabled reflects both
routing AND WAF status (routing alone is not sufficient); adds
blocked/statusCode to the response.
- Removes '_incapsula_resource' from BOT_CHALLENGE_KEYWORDS, matching
the same fix already shipped in spacecat-import-worker's vendored
copy — Imperva/Incapsula injects this into every page it fronts,
blocked or not, causing real pages to be misclassified as blocked.
- Introduces one shared ADOBE_PROBE_USER_AGENT constant used by both
checkEdgeOptimizeStatus and checkWafConnectivity, so the two checks
can no longer drift into sending different UAs.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Tokowaka-AI Tokowaka/1.0 AdobeEdgeOptimize-AI AdobeEdgeOptimize/1.0',
0 commit comments