Discourse is feeding js to archive.org again

AI-generated summary

Artoria2e5 reports that archiving a Discourse topic via Archive.org results in a blank page, despite visible content in source and numerous JS errors in the console. The issue persists even though crawler detection appears to work for Googlebot, and Archive.org’s user agent hasn’t changed significantly. Artoria2e5 also notes that Discourse serves JS to archive.is, which should render properly since it executes JS and doesn’t use a special UA — though they’re prepared to report bugs if archive.is fails to execute it. codinghorror responds that this has likely never worked, referencing an existing topic on the issue, and closes the report as a duplicate. The core problem remains: Discourse’s JS-heavy rendering breaks archival tools that don’t fully execute or handle client-side code, despite attempts to detect crawlers. The original topic referenced is Make Discourse play nice with the Wayback Machine.

I archived https://meta.discourse.org/t/add-category-to-top-menu-so-that-category-can-be-landing-page/101668 into https://web.archive.org/web/20181113043546/https://meta.discourse.org/t/add-category-to-top-menu-so-that-category-can-be-landing-page/101668. The resultant page is blank, but “view source” shows some content loaded. A quick glance at the console reveals tons of js errors. I archive the pages through open('https://web.archive.org/save/'+document.location), which should be the same as the click-to-archive function.

The crawler detection seems to still work with google’s bot. archive.org has not significantly changed its UA according to Webmaster Tools on Whoishostingthis.com | Whoishostingthis.com, so I have no idea what’s wrong this time. (I did try to peek at access.log for hints, but for some reason I am only seeing my UA GETting the pages around the archived timestamps on my instance… The robots.txt crawls by archive’s UA are present in the logs though.)


Discourse also feeds js to archive.is, which should’ve been fine because it does run the js into a final DOM and does not use a special UA, so there’s no detection for it anyway. I am ready to file bugs to them for failing to run the JS though…

I’m pretty sure this has never worked? See existing topic.

Closing this as we don’t need a dupe.

1 Like