Scrapy, a fast high-level web crawling & scraping framework for Python.
Document the Referer caveat of DEFAULT_REQUEST_HEADERS (#7917)
Adrian81d12c6eb895
diff --git a/docs/topics/settings.rst b/docs/topics/settings.rstindex 65ee77258..793d65f35 100644--- a/docs/topics/settings.rst+++ b/docs/topics/settings.rst@@ -658,6 +658,11 @@ The default headers used for Scrapy HTTP Requests. They're populated in the:class:`Request.cookies <scrapy.Request>` parameter. This is a knowncurrent limitation that is being worked on.+.. caution:: A ``Referer`` header defined here only reaches requests for which+ :class:`~scrapy.spidermiddlewares.referer.RefererMiddleware` does not set+ one, such as start requests. To send it on every request, set+ :setting:`REFERRER_POLICY` to ``"no-referrer"``.+.. setting:: DEPTH_LIMITDEPTH_LIMIT