-
Notifications
You must be signed in to change notification settings - Fork 443
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
[🐞] 404 in Search Console reported for /~partytown/partytown-sandbox-sw.html?{timestamp} #546
Comments
This solution makes sense to me. Is there any specific reason to index this html, I don't think so. Do you have the possibility to change your html file and verify if it works correctly? |
I've forked the repo and updated the code that generates the html: In Gatsby, these files are copied from the partytown to the function setupPartytown() {
const path = require("path");
const { copyLibFiles } = require("@builder.io/partytown/utils");
exports.onPreBuild = async () => {
await copyLibFiles(path.join(__dirname, "static", "~partytown"));
};
} I'll check GSC after few days to verify whether this page is still being indexed. |
@MTheProgrammer I see 🤔 maybe is the |
That's the official documentation with The page My guess is that Google robot crawls the page without cache and without cache it returns 404 - because Partytown worker has not yet been installed. Every page includes iframe with the link to the Partytown. However, attribute EDIT: I'm testing a hack with empty physical |
I see, great research. So I'm wondering how serve a different/valid html for the crawler but preserve the Partytown code in the html 🤔 |
did noindex, nofollow the script folder help? Facing the same issue in GSC |
Describe the bug
Hello, other people mentioned this problem, but they couldn't reproduce the bug:
In Google Search Console every crawl introduces new 404 pages for
/~partytown/partytown-sandbox-sw.html?XXX
url:Reproduction
https://lucidmodules.com/~partytown/partytown-sandbox-sw.html?1706003192708
Steps to reproduce
This might vary depending on whether you've already been on this page and web worker has been installed. However, when you clean the browser cache it should be as follows.
404 page on hard reload/first time download:
The correct page returned after worker has been installed:
Browser Info
Chrome
Additional Information
Maybe adding
<meta name=”robots” content=”noindex,nofollow“>
to the head would solve the issue with google bot trying to index thepartytown-sandbox-sw.html
page.The text was updated successfully, but these errors were encountered: