Skip to content

Verify BONanza raw Gist content after publish - #23

Merged
maghuro merged 2 commits into
mainfrom
fix/bonanza-raw-gist-verification
Sep 26, 2026
Merged

maghuro merged 2 commits into
mainfrom
fix/bonanza-raw-gist-verification

Conversation

@maghuro

@maghuro maghuro commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Problem

The Gist API can report a successful update while the public raw URL used by Tampermonkey still serves an older cached revision for a short period.

That happened with v1.5.11: the workflow generated and published a 1.5.11 .meta.js, but the raw .meta.js URL was still observed serving the previous version.

Change

After publishing both files, the workflow now:

  • fetches the exact public raw URLs used by Tampermonkey
  • requests revalidation with Cache-Control: no-cache and Pragma: no-cache
  • compares the raw bytes against the just-built .user.js and generated .meta.js
  • retries briefly if the raw endpoint is still stale
  • fails loudly if the public raw content never catches up

This makes the public update path, rather than only the Gist API response, the final publication check.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@maghuro
maghuro merged commit 9468a3c into main Sep 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant