# Discourse 再次向 archive.org 提交 js 进行归档

**URL:** <https://meta.discourse.org/t/discourse-is-feeding-js-to-archive-org-again/101902>\
**Category:** Bug\
**Created:** [2018 年11 月 13 日 04:58 UTC](https://meta.discourse.org/t/discourse-is-feeding-js-to-archive-org-again/101902 "2018-11-13T04:58:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Artoria2e5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/artoria2e5/32/109009_2.png) [@Artoria2e5](https://meta.discourse.org/u/Artoria2e5)\
发布日期： [2018 年11 月 13 日 04:58 UTC](https://meta.discourse.org/t/discourse-is-feeding-js-to-archive-org-again/101902/1 "2018-11-13T04:58:00Z")

</div>

I archived [https://meta.discourse.org/t/add-category-to-top-menu-so-that-category-can-be-landing-page/101668](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](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](http://archive.org) has not significantly changed its UA according to [Webmaster Tools on Whoishostingthis.com | Whoishostingthis.com](https://www.whoishostingthis.com/tools/user-agent/), 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 `GET`ting 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…

---

_[View the full topic](https://meta.discourse.org/t/discourse-is-feeding-js-to-archive-org-again/101902)._
