Repository navigation
fix: 301 every www.seofixkit.com request incl. static assets via run_worker_first: true #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
f5b2349
d90ffa7
1c9a51d
2cbad9a
99dc8b5
37541fb
643f289
2ee5aa3
f6b5a04
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,13 @@ | |
| "directory": "./dist", | ||
| "binding": "ASSETS", | ||
| "not_found_handling": "404-page", | ||
| "run_worker_first": ["/", "/api/*", "/v1/*", "/admin/*", "/beta", "/beta/*", "/demo", "/methodology", "/packages", "/check", "/r/*", "/.well-known/seofixkit-report-domain.txt", "/llms.txt", "/privacy", "/support", "/terms", "/robots.txt", "/sitemap.xml", "/fixture/*"] | ||
| // Every request must run the Worker first (not just the listed routes) so | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
These newly added comments make the file invalid JSON, but Useful? React with 👍 / 👎. |
||
| // the www.seofixkit.com -> https://seofixkit.com 301 in worker/index.js also | ||
| // covers static assets (/assets/*, /favicon.svg, /security.txt, ...). With a | ||
| // path list, asset requests bypass the Worker and www serves them 200, which | ||
| // leaks a second host into canonicals/sitemap indexing. The Worker's final | ||
| // ASSETS.fetch fallthrough keeps apex serving identical bytes for all paths. | ||
| "run_worker_first": true | ||
| }, | ||
| "r2_buckets": [ | ||
| { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Require
runWorkerFirst === truehere. The previous path-array configuration still satisfies this assertion and the subsequent page checks, yet it lets/favicon.svgand/assets/*bypass the Worker onwww, recreating the exact canonical-host regression this commit addresses. The live spot-check unit test uses a mocked redirect and the real live audit is opt-in, so the normal offline CI suite would not catch such a configuration rollback.Useful? React with 👍 / 👎.