<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: IndexerPal</title>
    <description>The latest articles on DEV Community by IndexerPal (@indexerpal).</description>
    <link>https://dev.to/indexerpal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4191028%2Fc8f4b039-8657-4dad-a75e-3a82e64ed55f.png</url>
      <title>DEV Community: IndexerPal</title>
      <link>https://dev.to/indexerpal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/indexerpal"/>
    <language>en</language>
    <item>
      <title>ETag, Last-Modified and 304s: let Googlebot recrawl what actually changed</title>
      <dc:creator>IndexerPal</dc:creator>
      <pubDate>Fri, 23 Oct 2026 13:18:32 +0000</pubDate>
      <link>https://dev.to/indexerpal/etag-last-modified-and-304s-let-googlebot-recrawl-what-actually-changed-2dk4</link>
      <guid>https://dev.to/indexerpal/etag-last-modified-and-304s-let-googlebot-recrawl-what-actually-changed-2dk4</guid>
      <description>&lt;p&gt;Every time Googlebot comes back to a page that hasn't changed, your server can send the whole thing again or answer &lt;code&gt;304 Not Modified&lt;/code&gt; with no body. The second option costs you almost nothing and leaves more of Google's crawl time for the pages that did change.&lt;/p&gt;

&lt;p&gt;Google documents this in its &lt;a href="https://developers.google.com/crawling/docs/crawlers-fetchers/overview-google-crawlers" rel="noopener noreferrer"&gt;overview of crawlers&lt;/a&gt;: its crawling infrastructure supports HTTP caching through &lt;code&gt;ETag&lt;/code&gt; / &lt;code&gt;If-None-Match&lt;/code&gt; and &lt;code&gt;Last-Modified&lt;/code&gt; / &lt;code&gt;If-Modified-Since&lt;/code&gt;. Its &lt;a href="https://developers.google.com/crawling/docs/crawl-budget" rel="noopener noreferrer"&gt;crawl budget guide&lt;/a&gt;, updated in July 2026, also lists "Support &lt;code&gt;304 (Not Modified)&lt;/code&gt; HTTP status codes" among its best practices. Most frameworks get this half right by default. This post shows how to get it fully right and how to prove it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the exchange works
&lt;/h2&gt;

&lt;p&gt;First crawl:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="nf"&gt;GET&lt;/span&gt; &lt;span class="nn"&gt;/docs/pricing&lt;/span&gt; &lt;span class="k"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="m"&gt;1.1&lt;/span&gt;
&lt;span class="na"&gt;Host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;www.example.com&lt;/span&gt;

HTTP/1.1 200 OK
ETag: "a3f9c1"
Last-Modified: Wed, 14 Oct 2026 09:12:00 GMT
Content-Type: text/html; charset=utf-8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next crawl, the crawler sends back what it saw:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="nf"&gt;GET&lt;/span&gt; &lt;span class="nn"&gt;/docs/pricing&lt;/span&gt; &lt;span class="k"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="m"&gt;1.1&lt;/span&gt;
&lt;span class="na"&gt;If-None-Match&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"a3f9c1"&lt;/span&gt;
&lt;span class="na"&gt;If-Modified-Since&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Wed, 14 Oct 2026 09:12:00 GMT&lt;/span&gt;

HTTP/1.1 304 Not Modified
ETag: "a3f9c1"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No body, so no download, no parsing and no rendering for that URL. If the page did change, you return &lt;code&gt;200&lt;/code&gt; with the new body and a new &lt;code&gt;ETag&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Google recommends
&lt;/h2&gt;

&lt;p&gt;Three points from the documentation are worth knowing before you touch any config:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;If both headers are present, Google's crawlers use &lt;code&gt;ETag&lt;/code&gt;&lt;/strong&gt;, as the HTTP standard requires.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google recommends &lt;code&gt;ETag&lt;/code&gt; over &lt;code&gt;Last-Modified&lt;/code&gt;&lt;/strong&gt; for its crawlers, because ETags have no date formatting problems.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you use &lt;code&gt;Last-Modified&lt;/code&gt;, format the date per the HTTP standard.&lt;/strong&gt; Google's example is &lt;code&gt;Fri, 4 Sep 1998 19:15:56 GMT&lt;/code&gt;. It also suggests &lt;code&gt;Cache-Control: max-age&lt;/code&gt; with the number of seconds you expect the content to stay unchanged, to help crawlers decide when to come back.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Google also notes that individual crawlers may or may not use caching depending on the product. Googlebot does when re-crawling for Search.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug most sites have
&lt;/h2&gt;

&lt;p&gt;The usual failure isn't a missing header. It's an &lt;code&gt;ETag&lt;/code&gt; that changes on every request even though the page didn't, so a &lt;code&gt;304&lt;/code&gt; never happens.&lt;/p&gt;

&lt;p&gt;Typical causes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cause&lt;/th&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hash of the full HTML, which includes a CSRF token, nonce or timestamp&lt;/td&gt;
&lt;td&gt;New ETag every request&lt;/td&gt;
&lt;td&gt;Hash the content model (record ID + &lt;code&gt;updated_at&lt;/code&gt;), not the rendered bytes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Several servers behind a load balancer, ETag built from inode or mtime&lt;/td&gt;
&lt;td&gt;ETag differs per server&lt;/td&gt;
&lt;td&gt;Use a content-based ETag&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CDN or proxy compresses the response and rewrites the ETag&lt;/td&gt;
&lt;td&gt;Strong ETag turns weak, or is dropped&lt;/td&gt;
&lt;td&gt;Check what the edge sends, not what the origin sends&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;Last-Modified&lt;/code&gt; set to "now" by the framework&lt;/td&gt;
&lt;td&gt;Every crawl looks like a change&lt;/td&gt;
&lt;td&gt;Set it from the record's real modified time&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Example: Express with a content-based ETag
&lt;/h2&gt;

&lt;p&gt;Express creates a weak ETag from the response body by default. That breaks as soon as the body contains anything per-request. Generate it from data instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;crypto&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;node:crypto&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;express&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;express&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;express&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;etag&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// we set it ourselves&lt;/span&gt;

&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/docs/:slug&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;next&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findBySlug&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;next&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;etag&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;`"&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;crypto&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createHash&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;sha1&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;:&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;updatedAt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toISOString&lt;/span&gt;&lt;span class="p"&gt;()}&lt;/span&gt;&lt;span class="s2"&gt;:&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;TEMPLATE_VERSION&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;hex&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;&lt;span class="s2"&gt;"`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;ETag&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;etag&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Last-Modified&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;updatedAt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toUTCString&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Cache-Control&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;public, max-age=0, must-revalidate&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;

  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;if-none-match&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nx"&gt;etag&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;304&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;end&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;render&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;TEMPLATE_VERSION&lt;/code&gt; is a constant you bump when the layout changes, so a redesign still produces new ETags for every page.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;toUTCString()&lt;/code&gt; gives &lt;code&gt;Wed, 14 Oct 2026 09:12:00 GMT&lt;/code&gt;, the format Google asks for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example: static files on nginx
&lt;/h2&gt;

&lt;p&gt;For static HTML, nginx already sends &lt;code&gt;ETag&lt;/code&gt; and &lt;code&gt;Last-Modified&lt;/code&gt; from the file's size and mtime. Two things break it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight nginx"&gt;&lt;code&gt;&lt;span class="k"&gt;location&lt;/span&gt; &lt;span class="n"&gt;/&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kn"&gt;etag&lt;/span&gt; &lt;span class="no"&gt;on&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;               &lt;span class="c1"&gt;# default, but make sure nothing turned it off&lt;/span&gt;
    &lt;span class="kn"&gt;if_modified_since&lt;/span&gt; &lt;span class="s"&gt;exact&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="c1"&gt;# gzip on; keeps a weak ETag (W/"...") since nginx 1.7.3, which is fine&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;A build that rewrites every file on each deploy changes every mtime, so every page looks modified. Make your build skip unchanged outputs, or set mtimes from git (&lt;code&gt;git restore-mtime&lt;/code&gt; from the &lt;code&gt;git-tools&lt;/code&gt; package does this).&lt;/li&gt;
&lt;li&gt;Several servers with different deploy times give different ETags for the same file. Deploy the same artifact everywhere, or compute ETags at build time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Test it with curl
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://www.example.com/docs/pricing

&lt;span class="nv"&gt;ETAG&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;curl &lt;span class="nt"&gt;-sI&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$URL&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; | &lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="nt"&gt;-F&lt;/span&gt;&lt;span class="s1"&gt;': '&lt;/span&gt; &lt;span class="s1"&gt;'tolower($1)=="etag"{print $2}'&lt;/span&gt; | &lt;span class="nb"&gt;tr&lt;/span&gt; &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'\r'&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"ETag: &lt;/span&gt;&lt;span class="nv"&gt;$ETAG&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;

curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; /dev/null &lt;span class="nt"&gt;-w&lt;/span&gt; &lt;span class="s2"&gt;"%{http_code}&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"If-None-Match: &lt;/span&gt;&lt;span class="nv"&gt;$ETAG&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$URL&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="c"&gt;# expect 304&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the first command twice. If the ETag differs between two requests a second apart, you have the per-request problem from the table above.&lt;/p&gt;

&lt;p&gt;Test through your CDN hostname as well as the origin. The crawler sees the edge.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check it in production
&lt;/h2&gt;

&lt;p&gt;Two places tell you whether crawlers are actually getting 304s.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your access logs.&lt;/strong&gt; Count status codes for verified Googlebot requests:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="s2"&gt;"Googlebot"&lt;/span&gt; access.log | &lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'{print $9}'&lt;/span&gt; | &lt;span class="nb"&gt;sort&lt;/span&gt; | &lt;span class="nb"&gt;uniq&lt;/span&gt; &lt;span class="nt"&gt;-c&lt;/span&gt; | &lt;span class="nb"&gt;sort&lt;/span&gt; &lt;span class="nt"&gt;-rn&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;User-agent strings can be faked, so for any decision that matters, verify the IP with a reverse DNS lookup, as Google's &lt;a href="https://developers.google.com/crawling/docs/crawlers-fetchers/verify-google-requests" rel="noopener noreferrer"&gt;crawler verification guide&lt;/a&gt; describes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Search Console Crawl Stats&lt;/strong&gt; (Settings &amp;gt; Crawl stats). The "By response" breakdown shows the share of &lt;code&gt;304 (Not modified)&lt;/code&gt; responses. On a site where most pages rarely change, a share near zero usually means the ETag bug above.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does and doesn't do
&lt;/h2&gt;

&lt;p&gt;Answering 304 doesn't make Google crawl more or index faster by itself. It makes each unchanged recrawl cheap for your server, which matters when the server is the bottleneck, and it gives Google a reliable signal that nothing changed. When you do change a page, the new ETag and a fresh &lt;code&gt;lastmod&lt;/code&gt; in your sitemap tell the same story. For how to keep &lt;code&gt;lastmod&lt;/code&gt; honest, see &lt;a href="https://indexerpal.hashnode.dev/xml-sitemaps-that-actually-help-indexing-split-date-honestly-and-audit" rel="noopener noreferrer"&gt;XML sitemaps that actually help indexing&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If a page has changed and Google still shows the old version weeks later, caching headers are rarely the cause. Look at whether the page is linked from anywhere Google crawls often.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Written by the IndexerPal team.&lt;/strong&gt; We build tools for URL and backlink indexing. For the step after a page changes, see &lt;a href="https://indexerpal.com/how-it-works" rel="noopener noreferrer"&gt;how IndexerPal works&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>http</category>
      <category>performance</category>
    </item>
    <item>
      <title>Sales, launches and news: getting time-sensitive pages into Google while they matter</title>
      <dc:creator>IndexerPal</dc:creator>
      <pubDate>Thu, 22 Oct 2026 13:18:42 +0000</pubDate>
      <link>https://dev.to/indexerpal/sales-launches-and-news-getting-time-sensitive-pages-into-google-while-they-matter-2le4</link>
      <guid>https://dev.to/indexerpal/sales-launches-and-news-getting-time-sensitive-pages-into-google-while-they-matter-2le4</guid>
      <description>&lt;p&gt;&lt;em&gt;From the IndexerPal team.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Some pages are only worth something for a few days. A Black Friday page indexed on the Monday after is useless. So is a product launch page that appears in Google two weeks after the launch, or an event page that shows up once the tickets are gone.&lt;/p&gt;

&lt;p&gt;Ordinary crawling works on Google's schedule, which on many sites means days. This post is a plan for the pages that can't wait: what to prepare in advance, what to do on the day, and what to do when it's over. Most of it is free. The part that isn't, we'll say so.&lt;/p&gt;

&lt;h2&gt;
  
  
  The most useful step happens a week before
&lt;/h2&gt;

&lt;p&gt;The single best thing you can do for a time-sensitive page is to make sure it isn't new when it matters. Black Friday falls on 27 Nov 2026 this year, so the page should be live and indexed by about 20 Nov 2026.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use a permanent URL for recurring events.&lt;/strong&gt; &lt;code&gt;/black-friday/&lt;/code&gt; reused every year beats &lt;code&gt;/black-friday-2026/&lt;/code&gt;. The page keeps its history, its links and its place in the index. Between events, update it to say when the next one is and what last year's looked like, instead of deleting it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Publish early.&lt;/strong&gt; For a launch, put the page live a week ahead with what you can say publicly: a description, a date, a sign-up form. Google can crawl and index it before the day, and on launch day you're asking for a recrawl of a known page, which is quicker than discovery of a new one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Link it from somewhere Google crawls often.&lt;/strong&gt; Your home page and main navigation are usually the most crawled pages on your site. A link from there tells crawlers the page exists and matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  The day before
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Add the URL to your sitemap with today's &lt;code&gt;lastmod&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Signals a real change on a page Google already knows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Add structured data that fits: &lt;code&gt;Product&lt;/code&gt; with &lt;code&gt;offers&lt;/code&gt;, &lt;code&gt;Event&lt;/code&gt;, &lt;code&gt;NewsArticle&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Helps Google understand the page; check it in the &lt;a href="https://search.google.com/test/rich-results" rel="noopener noreferrer"&gt;Rich Results Test&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Check the page with URL Inspection, "Test live URL"&lt;/td&gt;
&lt;td&gt;Catches a &lt;code&gt;noindex&lt;/code&gt; or a block before the day&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remove any password, preview flag or "coming soon" interstitial&lt;/td&gt;
&lt;td&gt;Crawlers can't log in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Make sure prices and dates are in the HTML, not only in a script that loads late&lt;/td&gt;
&lt;td&gt;So the first crawl sees the real content&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For publishers, a &lt;a href="https://developers.google.com/search/docs/crawling-indexing/sitemaps/news-sitemap" rel="noopener noreferrer"&gt;News sitemap&lt;/a&gt; lists articles published in the last two days, up to 1,000 URLs per file. If you publish news regularly, it's worth having before the big story, not after.&lt;/p&gt;

&lt;h2&gt;
  
  
  On the day
&lt;/h2&gt;

&lt;p&gt;Work through these in order. Each one takes minutes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Update the page&lt;/strong&gt; with the final content, and make sure the date in &lt;code&gt;lastmod&lt;/code&gt; and any visible "updated" date reflect it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Request indexing&lt;/strong&gt; in Search Console for the main URL, and for no more than a few others. There's a quota, and pressing it twice doesn't help. We cover the button, its quota and its failure messages in &lt;a href="https://indexerpal.hashnode.dev/request-indexing-in-search-console-what-the-button-does-its-quota-and-why-it-fails" rel="noopener noreferrer"&gt;Request Indexing in Search Console&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ping Bing and others with IndexNow&lt;/strong&gt; if you have it set up. One request covers Bing, Yandex and the other participating engines. If you don't, &lt;a href="https://dev.to/indexerpal/indexnow-in-ci-notify-bing-and-yandex-on-every-deploy-f20"&gt;IndexNow in CI&lt;/a&gt; shows how to send it on every deploy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Share the URL&lt;/strong&gt; where your audience already is: newsletter, social accounts, community posts. Besides traffic, these are pages crawlers visit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check in an hour, then in the afternoon.&lt;/strong&gt; URL Inspection shows the indexed version; a quick search for the exact page title shows what people see.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  When the list is longer than a few URLs
&lt;/h2&gt;

&lt;p&gt;The free route works well for one main page. It gets harder when the launch is fifty product pages, a full new category, or a set of regional pages, all needed in Google the same day. Search Console's request quota covers a few URLs, and a sitemap gets crawled at Google's pace.&lt;/p&gt;

&lt;p&gt;This is where a paid indexing service can earn its cost. IndexerPal is the one we build: its instant mode indexes pages in 2–5 minutes on average (IndexerPal's own measurement), at 3 credits per URL, and the first check in Google runs within the hour so you can see which pages are in. Other services exist, with different prices and published speeds. Whichever you use, the pages still need to be indexable: a page with &lt;code&gt;noindex&lt;/code&gt;, a login wall or a canonical pointing elsewhere won't be indexed by any method.&lt;/p&gt;

&lt;p&gt;A sensible split for a big launch: request indexing for the two or three most important URLs yourself, send the rest of the batch through a service, and let the sitemap handle everything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  After it's over
&lt;/h2&gt;

&lt;p&gt;What you do next decides whether the page helps next time.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Don't delete the page.&lt;/strong&gt; Update it: "This sale has ended. Our next one starts on...". Keep the URL live and linked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't redirect it to the home page.&lt;/strong&gt; Google tends to treat redirects of a removed page to an unrelated one like a soft 404. If the product is gone for good, a 404 or 410 is the honest answer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the links that pointed to it.&lt;/strong&gt; Next year, the page starts with everything it earned this year.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update &lt;code&gt;lastmod&lt;/code&gt; when you make the change&lt;/strong&gt;, so the sitemap stays truthful.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A one-page checklist
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A week before&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Permanent URL chosen and live&lt;/li&gt;
&lt;li&gt;[ ] Linked from home page or navigation&lt;/li&gt;
&lt;li&gt;[ ] Indexed (check URL Inspection)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Day before&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Sitemap updated, structured data valid&lt;/li&gt;
&lt;li&gt;[ ] Live test passes, no &lt;code&gt;noindex&lt;/code&gt;, no password&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;On the day&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Final content live&lt;/li&gt;
&lt;li&gt;[ ] Indexing requested for the main URL&lt;/li&gt;
&lt;li&gt;[ ] IndexNow ping sent&lt;/li&gt;
&lt;li&gt;[ ] URL shared&lt;/li&gt;
&lt;li&gt;[ ] Checked after an hour&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;After&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Page updated, not deleted&lt;/li&gt;
&lt;li&gt;[ ] &lt;code&gt;lastmod&lt;/code&gt; updated&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Google's own &lt;a href="https://developers.google.com/search/docs/crawling-indexing/ask-google-to-recrawl" rel="noopener noreferrer"&gt;recrawl guidance&lt;/a&gt; is honest about the limits: requesting a crawl doesn't guarantee inclusion, and its systems "prioritize the fast inclusion of high quality, useful content". Preparing the page ahead of time is how you give it the best chance.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Written by the IndexerPal team.&lt;/strong&gt; We build tools for URL and backlink indexing. For pages that need to be in Google today, see &lt;a href="https://indexerpal.com/instant-indexing" rel="noopener noreferrer"&gt;IndexerPal instant indexing&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>google</category>
      <category>ecommerce</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The Google Indexing API: what it's for, its quotas, and a working Python client</title>
      <dc:creator>IndexerPal</dc:creator>
      <pubDate>Wed, 21 Oct 2026 13:21:27 +0000</pubDate>
      <link>https://dev.to/indexerpal/the-google-indexing-api-what-its-for-its-quotas-and-a-working-python-client-1cki</link>
      <guid>https://dev.to/indexerpal/the-google-indexing-api-what-its-for-its-quotas-and-a-working-python-client-1cki</guid>
      <description>&lt;p&gt;Search for "fast Google indexing" and you'll find tutorials telling you to push every new blog post through the Google Indexing API. Google's own documentation says something narrower. This post covers what the API is actually for, the quotas you get, a small Python client that works, and what to use for the pages the API doesn't cover.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Google says the API is for
&lt;/h2&gt;

&lt;p&gt;From the &lt;a href="https://developers.google.com/search/apis/indexing-api/v3/quickstart" rel="noopener noreferrer"&gt;Indexing API quickstart&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The Indexing API can only be used to crawl pages with either &lt;code&gt;JobPosting&lt;/code&gt; or &lt;code&gt;BroadcastEvent&lt;/code&gt; embedded in a &lt;code&gt;VideoObject&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's job listings and livestream video pages: content that appears and expires quickly, where a crawl a week later is useless. The same page warns that every submission goes through spam detection, and that attempts to abuse the API, including using multiple accounts to exceed quotas, "may result in access being revoked."&lt;/p&gt;

&lt;p&gt;So if your site is a job board or streams live events, this API is the right tool. If it's a blog, a shop or a SaaS marketing site, it isn't, and the rest of this post still tells you what to use instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  The quotas
&lt;/h2&gt;

&lt;p&gt;From the &lt;a href="https://developers.google.com/search/apis/indexing-api/v3/quota-pricing" rel="noopener noreferrer"&gt;quota page&lt;/a&gt;, checked on 21 October 2026 (Google last updated the page on 16 October 2026):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Quota&lt;/th&gt;
&lt;th&gt;Default&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;publish&lt;/code&gt; requests per day per project (&lt;code&gt;URL_UPDATED&lt;/code&gt; and &lt;code&gt;URL_DELETED&lt;/code&gt; combined)&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;getMetadata&lt;/code&gt; requests per minute per project&lt;/td&gt;
&lt;td&gt;180&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All requests per minute per project&lt;/td&gt;
&lt;td&gt;380&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The daily quota resets at midnight Pacific Time. Use of the API is free. Batching lets you combine up to 100 calls in one HTTP request, but each call inside the batch still counts against the 200.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup in five steps
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In Google Cloud, create a project and enable the &lt;strong&gt;Web Search Indexing API&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Create a &lt;strong&gt;service account&lt;/strong&gt; and download its JSON key. Store it as a secret, never in the repo.&lt;/li&gt;
&lt;li&gt;In Search Console, open the property, go to &lt;strong&gt;Settings &amp;gt; Users and permissions&lt;/strong&gt; and add the service account's email address as an &lt;strong&gt;Owner&lt;/strong&gt;. Without owner rights, every call returns 403.&lt;/li&gt;
&lt;li&gt;Install the client libraries:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;google-auth requests
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Make sure the pages carry valid &lt;code&gt;JobPosting&lt;/code&gt; or &lt;code&gt;BroadcastEvent&lt;/code&gt; structured data. Test one in the &lt;a href="https://search.google.com/test/rich-results" rel="noopener noreferrer"&gt;Rich Results Test&lt;/a&gt; before you automate anything.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  A small client
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# indexing_api.py
&lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;

&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;google.oauth2&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;service_account&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;google.auth.transport.requests&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Request&lt;/span&gt;

&lt;span class="n"&gt;SCOPES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://www.googleapis.com/auth/indexing&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;ENDPOINT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://indexing.googleapis.com/v3/urlNotifications&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key_file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Session&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;creds&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;service_account&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Credentials&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_service_account_file&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;key_file&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;scopes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;SCOPES&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;creds&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;refresh&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Request&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Session&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Authorization&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Bearer &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;creds&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Content-Type&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;application/json&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;publish&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Session&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;deleted&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;bool&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;url&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;type&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;URL_DELETED&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;deleted&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;URL_UPDATED&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;ENDPOINT&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;:publish&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;429&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;RuntimeError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Daily quota used up. Try again after midnight PT.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Session&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;ENDPOINT&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;/metadata&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;url&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;


&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;__main__&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;service-account.json&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;publish&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;urlNotificationMetadata&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;latestUpdate&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# stay well under the per-minute limit
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Feed it URLs from your job board's "published" and "expired" events:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;psql &lt;span class="nt"&gt;-Atc&lt;/span&gt; &lt;span class="s2"&gt;"select url from jobs where published_at &amp;gt; now() - interval '1 hour'"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  | python indexing_api.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For expired listings, call &lt;code&gt;publish(s, url, deleted=True)&lt;/code&gt; once the page returns 404 or 410, or once it no longer contains &lt;code&gt;JobPosting&lt;/code&gt; markup. Sending &lt;code&gt;URL_DELETED&lt;/code&gt; while the page still shows the job only confuses things.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading the responses
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;th&gt;Usual cause&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;Notification accepted. Not the same as indexed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;403 "Permission denied"&lt;/td&gt;
&lt;td&gt;Service account isn't an owner of the Search Console property, or the API isn't enabled on the project.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;429&lt;/td&gt;
&lt;td&gt;Daily or per-minute quota reached.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;400&lt;/td&gt;
&lt;td&gt;Malformed URL or body. Check for a missing scheme or trailing whitespace.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;getMetadata&lt;/code&gt; tells you the last time Google received each type of notification for a URL. It does not tell you whether the page is indexed. For that, use the URL Inspection tool or the Search Console API.&lt;/p&gt;

&lt;h2&gt;
  
  
  Planning around 200 a day
&lt;/h2&gt;

&lt;p&gt;Two hundred notifications a day sounds tight, but for most job boards the real number is smaller than it looks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Send &lt;code&gt;URL_UPDATED&lt;/code&gt; when a listing goes live and when a material field changes (salary, location, closing date). Don't send it on every view-counter update.&lt;/li&gt;
&lt;li&gt;Send &lt;code&gt;URL_DELETED&lt;/code&gt; when a listing expires.&lt;/li&gt;
&lt;li&gt;Queue anything over the quota and send it after the reset, oldest first.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can see your current quota in the Google API Console. If you consistently need more, check the Indexing API documentation for Google's current process for requesting a higher quota.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to use for every other page
&lt;/h2&gt;

&lt;p&gt;For pages that aren't job postings or livestreams, these are the tools Google documents:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;Good for&lt;/th&gt;
&lt;th&gt;Limit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;XML sitemap with accurate &lt;code&gt;lastmod&lt;/code&gt; (&lt;a href="https://indexerpal.hashnode.dev/xml-sitemaps-that-actually-help-indexing-split-date-honestly-and-audit" rel="noopener noreferrer"&gt;how to build one Google trusts&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;Every page you want indexed&lt;/td&gt;
&lt;td&gt;50,000 URLs or 50 MB per file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Internal links from crawled pages&lt;/td&gt;
&lt;td&gt;New pages and updated pages&lt;/td&gt;
&lt;td&gt;None, but they need to be real links in the HTML&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;URL Inspection &amp;gt; Request indexing&lt;/td&gt;
&lt;td&gt;A few important URLs&lt;/td&gt;
&lt;td&gt;A daily quota per property&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Search Console Sitemaps report&lt;/td&gt;
&lt;td&gt;Seeing when Google read your sitemap&lt;/td&gt;
&lt;td&gt;One entry per sitemap&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Google's &lt;a href="https://developers.google.com/search/docs/crawling-indexing/ask-google-to-recrawl" rel="noopener noreferrer"&gt;recrawl guide&lt;/a&gt; sums it up: use URL Inspection for a few URLs and a sitemap for many, and be patient, since crawling "can take anywhere from a few days to a few weeks."&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] The pages contain &lt;code&gt;JobPosting&lt;/code&gt; or &lt;code&gt;BroadcastEvent&lt;/code&gt; in a &lt;code&gt;VideoObject&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;[ ] Web Search Indexing API enabled on the Cloud project&lt;/li&gt;
&lt;li&gt;[ ] Service account added as Owner in Search Console&lt;/li&gt;
&lt;li&gt;[ ] Key stored as a secret&lt;/li&gt;
&lt;li&gt;[ ] Notifications sent on publish, material change and expiry only&lt;/li&gt;
&lt;li&gt;[ ] 429 handled with a queue, not a retry loop&lt;/li&gt;
&lt;li&gt;[ ] Indexing verified separately, not inferred from a 200&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Written by the IndexerPal team.&lt;/strong&gt; We build tools for URL and backlink indexing. For regular pages, which the Indexing API doesn't cover, see &lt;a href="https://indexerpal.com/website-indexing" rel="noopener noreferrer"&gt;how IndexerPal handles website indexing&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>google</category>
      <category>python</category>
      <category>api</category>
    </item>
    <item>
      <title>Search vs training: a robots.txt for AI crawlers that doesn't hide you from AI search</title>
      <dc:creator>IndexerPal</dc:creator>
      <pubDate>Tue, 20 Oct 2026 13:17:48 +0000</pubDate>
      <link>https://dev.to/indexerpal/search-vs-training-a-robotstxt-for-ai-crawlers-that-doesnt-hide-you-from-ai-search-47bm</link>
      <guid>https://dev.to/indexerpal/search-vs-training-a-robotstxt-for-ai-crawlers-that-doesnt-hide-you-from-ai-search-47bm</guid>
      <description>&lt;p&gt;A common reaction to AI crawlers is a robots.txt that says &lt;code&gt;Disallow: /&lt;/code&gt; to every AI bot you can name. That also takes you out of AI search answers in ChatGPT, Perplexity and Claude, because each of these vendors now separates the bot that builds a &lt;strong&gt;search index&lt;/strong&gt; from the bot that collects &lt;strong&gt;training data&lt;/strong&gt;, and a blanket block hits both.&lt;/p&gt;

&lt;p&gt;This post maps the user-agent tokens to what they actually control, gives a robots.txt you can adapt, and covers how to check the result in your logs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tokens and what they control
&lt;/h2&gt;

&lt;p&gt;All of these are taken from each vendor's own crawler documentation (links below the table).&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Vendor&lt;/th&gt;
&lt;th&gt;Token&lt;/th&gt;
&lt;th&gt;Used for&lt;/th&gt;
&lt;th&gt;Blocking it means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Google&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Googlebot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Google Search, including AI Overviews and AI Mode&lt;/td&gt;
&lt;td&gt;You disappear from Google Search&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Google-Extended&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Gemini training and grounding in Gemini Apps and Vertex AI&lt;/td&gt;
&lt;td&gt;No effect on Google Search inclusion or ranking&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;&lt;code&gt;OAI-SearchBot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Showing sites in ChatGPT search&lt;/td&gt;
&lt;td&gt;Not shown in ChatGPT search answers (may still appear as navigational links)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GPTBot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Training OpenAI's foundation models&lt;/td&gt;
&lt;td&gt;Content not used for training&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ChatGPT-User&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fetches triggered by a user in ChatGPT&lt;/td&gt;
&lt;td&gt;OpenAI notes robots.txt rules may not apply to user-initiated fetches&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Claude-SearchBot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Search result quality in Claude&lt;/td&gt;
&lt;td&gt;Lower visibility in Claude's search answers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ClaudeBot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Training data&lt;/td&gt;
&lt;td&gt;Content not collected for training&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Claude-User&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fetches at a user's request&lt;/td&gt;
&lt;td&gt;Claude can't retrieve your page for a user&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Perplexity&lt;/td&gt;
&lt;td&gt;&lt;code&gt;PerplexityBot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Perplexity search results (not used for training, per Perplexity)&lt;/td&gt;
&lt;td&gt;Not surfaced in Perplexity results&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Perplexity&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Perplexity-User&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fetches for a user's question&lt;/td&gt;
&lt;td&gt;Perplexity says it generally ignores robots.txt&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sources: &lt;a href="https://developers.google.com/crawling/docs/crawlers-fetchers/google-common-crawlers" rel="noopener noreferrer"&gt;Google's common crawlers&lt;/a&gt;, &lt;a href="https://platform.openai.com/docs/bots" rel="noopener noreferrer"&gt;OpenAI crawlers&lt;/a&gt;, &lt;a href="https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler" rel="noopener noreferrer"&gt;Anthropic's crawler FAQ&lt;/a&gt;, &lt;a href="https://docs.perplexity.ai/docs/resources/perplexity-crawlers" rel="noopener noreferrer"&gt;Perplexity crawlers&lt;/a&gt;. Vendors add and rename bots, so check these pages before you ship.&lt;/p&gt;

&lt;p&gt;Two points people get wrong most often:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Google has no separate AI search bot.&lt;/strong&gt; Google's &lt;a href="https://developers.google.com/search/docs/appearance/ai-features" rel="noopener noreferrer"&gt;AI features guide&lt;/a&gt; says AI Overviews and AI Mode are part of Search, and robots.txt rules for &lt;code&gt;Googlebot&lt;/code&gt; are the control. Blocking &lt;code&gt;Google-Extended&lt;/code&gt; doesn't remove you from AI Overviews; limiting snippets (&lt;code&gt;nosnippet&lt;/code&gt;, &lt;code&gt;max-snippet&lt;/code&gt;) or &lt;code&gt;noindex&lt;/code&gt; does.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;User-triggered fetchers are not crawlers.&lt;/strong&gt; &lt;code&gt;ChatGPT-User&lt;/code&gt; and &lt;code&gt;Perplexity-User&lt;/code&gt; act on a person's request. Their vendors describe robots.txt as not applying, or applying differently. If you need a hard block, it has to happen at the server or CDN, not in robots.txt.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A robots.txt that separates the two
&lt;/h2&gt;

&lt;p&gt;This version allows search and blocks training. Flip the rules if you want the opposite.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Search engines and AI search: allowed
User-agent: Googlebot
User-agent: Bingbot
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /
Disallow: /account/
Disallow: /api/

# Model training: blocked (CCBot is Common Crawl, whose data is widely used for training)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: CCBot
Disallow: /

# Everyone else
User-agent: *
Allow: /
Disallow: /account/
Disallow: /api/

Sitemap: https://www.example.com/sitemap.xml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;How the grouping works: a crawler follows the single group whose &lt;code&gt;User-agent&lt;/code&gt; line matches it most specifically, and ignores the rest. That's why the &lt;code&gt;Disallow&lt;/code&gt; lines for private paths are repeated in the search group. A bot that matches a named group never reads the &lt;code&gt;*&lt;/code&gt; group.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the file before you deploy it
&lt;/h2&gt;

&lt;p&gt;Python's standard library parses robots.txt, which is enough for a quick check in CI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# check_robots.py
&lt;/span&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;urllib.robotparser&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;RobotFileParser&lt;/span&gt;

&lt;span class="n"&gt;rp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;RobotFileParser&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;rp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;public/robots.txt&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;splitlines&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;

&lt;span class="n"&gt;cases&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Googlebot&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/blog/post&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;OAI-SearchBot&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/blog/post&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;PerplexityBot&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/account/settings&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;GPTBot&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/blog/post&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ClaudeBot&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;failed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;
&lt;span class="nf"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cases&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="n"&gt;got&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;can_fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://www.example.com&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;got&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;failed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;FAIL &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;agent&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;: expected &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;, got &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;got&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;SystemExit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;failed&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The standard library parser is simpler than Google's own (it doesn't handle every wildcard case the same way), so treat it as a regression test, not the final word. For Google, the robots.txt report in Search Console shows what Google fetched and any parse errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  Don't let the CDN undo it
&lt;/h2&gt;

&lt;p&gt;Many CDNs and hosting platforms now offer one-click "block AI bots" settings. Some of these block at the network level, before robots.txt is even read, and the default lists can include search bots like &lt;code&gt;OAI-SearchBot&lt;/code&gt; or &lt;code&gt;PerplexityBot&lt;/code&gt;. Google's AI features guide makes the same point for Googlebot: crawling has to be allowed "by any CDN or hosting infrastructure", not just in robots.txt.&lt;/p&gt;

&lt;p&gt;If you use one of these settings, open its bot list and compare it with the table above.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about llms.txt?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;llms.txt&lt;/code&gt; is a proposal for a Markdown file at your site root that summarizes the site and links to key pages for language models. Some AI tools and documentation sites use it, and it's cheap to add.&lt;/p&gt;

&lt;p&gt;Two things to keep in mind:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It doesn't control access. Crawlers read robots.txt for that.&lt;/li&gt;
&lt;li&gt;Google says you don't need it. The AI features guide states: "You don't need to create new machine readable files, AI text files, or markup to appear in these features."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you publish one, keep it short, keep the links current, and don't put anything in it you wouldn't put on a public page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check what's really hitting you
&lt;/h2&gt;

&lt;p&gt;Logs tell you whether your rules match reality:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# requests per AI-related user agent, last log file&lt;/span&gt;
&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-Eo&lt;/span&gt; &lt;span class="s1"&gt;'GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|Claude-SearchBot|Claude-User|PerplexityBot|Perplexity-User'&lt;/span&gt; access.log &lt;span class="se"&gt;\&lt;/span&gt;
  | &lt;span class="nb"&gt;sort&lt;/span&gt; | &lt;span class="nb"&gt;uniq&lt;/span&gt; &lt;span class="nt"&gt;-c&lt;/span&gt; | &lt;span class="nb"&gt;sort&lt;/span&gt; &lt;span class="nt"&gt;-rn&lt;/span&gt;

&lt;span class="c"&gt;# what status codes the training bots got (expect few or none after a block)&lt;/span&gt;
&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-E&lt;/span&gt; &lt;span class="s1"&gt;'GPTBot|ClaudeBot'&lt;/span&gt; access.log | &lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'{print $9}'&lt;/span&gt; | &lt;span class="nb"&gt;sort&lt;/span&gt; | &lt;span class="nb"&gt;uniq&lt;/span&gt; &lt;span class="nt"&gt;-c&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;User-agent strings are easy to fake. Each vendor publishes IP ranges (OpenAI's &lt;code&gt;gptbot.json&lt;/code&gt; and &lt;code&gt;searchbot.json&lt;/code&gt;, Perplexity's &lt;code&gt;perplexitybot.json&lt;/code&gt;, Google's crawler IP lists), so verify the source IP before you act on a spike.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Decide separately whether you want to be &lt;strong&gt;found&lt;/strong&gt; in AI search and whether you want to be &lt;strong&gt;used&lt;/strong&gt; for training.&lt;/li&gt;
&lt;li&gt;Name each bot in robots.txt; don't rely on one catch-all rule.&lt;/li&gt;
&lt;li&gt;Remember that Google's AI features follow &lt;code&gt;Googlebot&lt;/code&gt;, not &lt;code&gt;Google-Extended&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Check the CDN's bot settings and your logs, not just the file.&lt;/li&gt;
&lt;li&gt;Treat llms.txt as optional documentation, not as an access control.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Being in an AI answer still starts with being crawled and indexed. A page Google hasn't indexed can't be a source in AI Overviews.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Written by the IndexerPal team.&lt;/strong&gt; We build tools for URL and backlink indexing. To see which of your pages are in Google's index right now, try the &lt;a href="https://indexerpal.com/index-checker" rel="noopener noreferrer"&gt;IndexerPal index checker&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>ai</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>IndexNow in CI: notify Bing and Yandex on every deploy</title>
      <dc:creator>IndexerPal</dc:creator>
      <pubDate>Mon, 19 Oct 2026 13:20:38 +0000</pubDate>
      <link>https://dev.to/indexerpal/indexnow-in-ci-notify-bing-and-yandex-on-every-deploy-f20</link>
      <guid>https://dev.to/indexerpal/indexnow-in-ci-notify-bing-and-yandex-on-every-deploy-f20</guid>
      <description>&lt;p&gt;IndexNow is a small protocol with one job: tell search engines that a URL was added, changed or deleted, right when it happens. You host a key file, send a POST with a list of URLs, and the engines that take part share the notice with each other.&lt;/p&gt;

&lt;p&gt;This post sets it up the way most developers want it: once, inside the deploy pipeline, submitting only the URLs that actually changed. Everything below follows the spec at &lt;a href="https://www.indexnow.org/documentation" rel="noopener noreferrer"&gt;indexnow.org&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who receives IndexNow pings
&lt;/h2&gt;

&lt;p&gt;The FAQ at indexnow.org lists these endpoints: the shared &lt;code&gt;api.indexnow.org&lt;/code&gt;, Amazon, Bing, Naver, Seznam.cz, Yandex and Yep. A submission to any one of them is shared with all participating engines, so you only need to send it once.&lt;/p&gt;

&lt;p&gt;Google is not on that list. For Google you still rely on links, sitemaps and Search Console (more on that at the end). If Bing, Yandex or the other engines send you any traffic, IndexNow is still worth the hour it takes to set up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: create and host the key
&lt;/h2&gt;

&lt;p&gt;The key is 8 to 128 characters: letters, numbers and hyphens. A UUID without changes works.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;uuidgen | &lt;span class="nb"&gt;tr&lt;/span&gt; &lt;span class="s1"&gt;'A-Z'&lt;/span&gt; &lt;span class="s1"&gt;'a-z'&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="nt"&gt;-n&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"public/&lt;/span&gt;&lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;.txt"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The file must be served at &lt;code&gt;https://yourdomain.com/&amp;lt;key&amp;gt;.txt&lt;/code&gt;, as UTF-8, containing only the key. Check it the way a search engine would:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; /dev/null &lt;span class="nt"&gt;-w&lt;/span&gt; &lt;span class="s2"&gt;"%{http_code} %{content_type}&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="s2"&gt;"https://www.example.com/&lt;/span&gt;&lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;.txt"&lt;/span&gt;
&lt;span class="c"&gt;# expect: 200 text/plain&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Common failures: a framework that rewrites unknown paths to the SPA shell (you get 200 with HTML), a CDN rule that blocks &lt;code&gt;.txt&lt;/code&gt; files, or a staging password in front of the whole site.&lt;/p&gt;

&lt;p&gt;Each subdomain is a separate host. &lt;code&gt;blog.example.com&lt;/code&gt; and &lt;code&gt;shop.example.com&lt;/code&gt; each need their own key file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: send one URL by hand
&lt;/h2&gt;

&lt;p&gt;Before automating anything, confirm the key works:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-i&lt;/span&gt; &lt;span class="s2"&gt;"https://api.indexnow.org/indexnow?url=https%3A%2F%2Fwww.example.com%2Fblog%2Fnew-post%2F&amp;amp;key=&lt;/span&gt;&lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The URL must be URL-encoded. Read the status code:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Code&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;What to do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;Received&lt;/td&gt;
&lt;td&gt;Nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;202&lt;/td&gt;
&lt;td&gt;Received, key check pending&lt;/td&gt;
&lt;td&gt;Normal on the first request&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;400&lt;/td&gt;
&lt;td&gt;Bad request&lt;/td&gt;
&lt;td&gt;Check the format and encoding&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;403&lt;/td&gt;
&lt;td&gt;Key not valid&lt;/td&gt;
&lt;td&gt;The key file is missing or doesn't match&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;422&lt;/td&gt;
&lt;td&gt;URL doesn't belong to the host, or key mismatch&lt;/td&gt;
&lt;td&gt;Check &lt;code&gt;host&lt;/code&gt; and the URL list&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;429&lt;/td&gt;
&lt;td&gt;Too many requests&lt;/td&gt;
&lt;td&gt;Back off, respect &lt;code&gt;Retry-After&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A 200 only means the engine received the URL. It says nothing about crawling or indexing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: batch submissions with a small script
&lt;/h2&gt;

&lt;p&gt;For more than one URL, POST JSON. One request takes up to 10,000 URLs, all on the same host.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// scripts/indexnow.mjs&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;HOST&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;SITE_HOST&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;          &lt;span class="c1"&gt;// www.example.com&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;INDEXNOW_KEY&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;ENDPOINT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://api.indexnow.org/indexnow&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;submit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;unique&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[...&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;)].&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;u&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;u&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;host&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nx"&gt;HOST&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nx"&gt;unique&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;10000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;urlList&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;unique&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;10000&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ENDPOINT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;POST&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Content-Type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;application/json; charset=utf-8&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
      &lt;span class="na"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
        &lt;span class="na"&gt;host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;HOST&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;keyLocation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`https://&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;HOST&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;.txt`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nx"&gt;urlList&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}),&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;toISOString&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
      &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;urlList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; URLs`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;retry-after&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="dl"&gt;""&lt;/span&gt;
    &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;429&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;          &lt;span class="c1"&gt;// stop, try on the next deploy&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;endsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;indexnow.mjs&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;urls&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;submit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The filter on &lt;code&gt;host&lt;/code&gt; matters. A stray URL from another domain makes the whole batch fail with 422.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: work out which URLs changed
&lt;/h2&gt;

&lt;p&gt;This is the part that decides whether IndexNow helps or just adds noise. The FAQ asks you not to resubmit unchanged URLs and to wait at least 5 minutes between submissions of the same URL.&lt;/p&gt;

&lt;p&gt;For a static site or a docs site built from Markdown, git already knows what changed. Map content paths to public URLs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// scripts/changed-urls.mjs&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;execSync&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;node:child_process&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;BASE_SHA&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;HEAD~1&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;files&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;execSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`git diff --name-status &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;base&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; HEAD -- content/`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;urls&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;files&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[,&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="se"&gt;\s&lt;/span&gt;&lt;span class="sr"&gt;+/&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="c1"&gt;// content/blog/my-post.md -&amp;gt; https://www.example.com/blog/my-post/&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;slug&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;/^content&lt;/span&gt;&lt;span class="se"&gt;\/&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;""&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="se"&gt;\.&lt;/span&gt;&lt;span class="sr"&gt;mdx&lt;/span&gt;&lt;span class="se"&gt;?&lt;/span&gt;&lt;span class="sr"&gt;$/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="se"&gt;\/&lt;/span&gt;&lt;span class="sr"&gt;index$/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;""&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;`https://&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;SITE_HOST&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--name-status&lt;/code&gt; includes deleted files (status &lt;code&gt;D&lt;/code&gt;). Keep them: IndexNow is also for removals, and the deleted URL should now answer 404 or 410. Redirected URLs can be submitted too.&lt;/p&gt;

&lt;p&gt;For a CMS-driven site, hook into the save or publish event instead, and only fire when the body, title, price or availability changed. A typo fix in the footer is not worth a ping.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: run it on deploy
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# .github/workflows/indexnow.yml&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;IndexNow&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;workflow_run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;workflows&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Deploy"&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;types&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;completed&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;

&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;ping&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ github.event.workflow_run.conclusion == 'success' }}&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v7&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;fetch-depth&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;2&lt;/span&gt; &lt;span class="pi"&gt;}&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-node@v7&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;node-version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;24&lt;/span&gt; &lt;span class="pi"&gt;}&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;node scripts/indexnow.mjs $(node scripts/changed-urls.mjs)&lt;/span&gt;
        &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;SITE_HOST&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;www.example.com&lt;/span&gt;
          &lt;span class="na"&gt;INDEXNOW_KEY&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.INDEXNOW_KEY }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it after the deploy finishes, not before. If an engine fetches the URL a few seconds after your ping and still gets the old version, you've spent the notice for nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before you write any code: check your platform
&lt;/h2&gt;

&lt;p&gt;The indexnow.org FAQ lists native or plugin support in WordPress, Shopify, Wix, Drupal, Joomla and others, and Cloudflare offers it at the CDN level. If one of those already pings for you, adding your own script doubles every submission. Pick one source.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measuring whether it works
&lt;/h2&gt;

&lt;p&gt;Bing Webmaster Tools has an IndexNow section that shows the URLs it received from you and any errors. Log every submission with a timestamp, the status code and the URL count, as in the script above, so you can match a deploy to what Bing saw.&lt;/p&gt;

&lt;p&gt;Then look at outcomes, not pings. Pick ten URLs you submitted last week and check whether Bing shows the new version. If it doesn't, the cause is usually the page itself: thin content, a noindex, or a canonical pointing elsewhere. IndexNow only shortens the time until a crawler looks.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about Google?
&lt;/h2&gt;

&lt;p&gt;Google doesn't take part in IndexNow. For your own pages, Google's tools are an XML sitemap with accurate &lt;code&gt;lastmod&lt;/code&gt; dates, internal links from pages it already crawls, and the URL Inspection tool for a handful of URLs. Google's &lt;a href="https://developers.google.com/search/docs/crawling-indexing/ask-google-to-recrawl" rel="noopener noreferrer"&gt;recrawl guide&lt;/a&gt; covers both and is clear that a request doesn't guarantee inclusion.&lt;/p&gt;

&lt;p&gt;A reasonable setup for most sites: IndexNow fires on deploy for the changed URLs, the sitemap regenerates in the same build, and you only open Search Console when a specific page is late.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Written by the IndexerPal team.&lt;/strong&gt; We build tools for URL and backlink indexing in Google, Bing and Yandex. If you'd rather not run the pipeline yourself, see &lt;a href="https://indexerpal.com/website-indexing" rel="noopener noreferrer"&gt;how IndexerPal indexes websites&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>devops</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Google not indexing your pages: a debugging checklist</title>
      <dc:creator>IndexerPal</dc:creator>
      <pubDate>Sat, 17 Oct 2026 18:54:57 +0000</pubDate>
      <link>https://dev.to/indexerpal/google-not-indexing-your-pages-a-debugging-checklist-15k7</link>
      <guid>https://dev.to/indexerpal/google-not-indexing-your-pages-a-debugging-checklist-15k7</guid>
      <description>&lt;p&gt;When a page won't show up in Google, the temptation is to hit "Request indexing" again and wait. Treat it like any other bug instead. Get the exact error, reproduce it locally, fix the cause, then verify.&lt;/p&gt;

&lt;p&gt;This checklist is written for developers who own the code and the server. Most of the checks are a single &lt;code&gt;curl&lt;/code&gt; command.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Read the exact status first
&lt;/h2&gt;

&lt;p&gt;Open &lt;a href="https://search.google.com/search-console/about" rel="noopener noreferrer"&gt;Search Console&lt;/a&gt;, paste the full URL into the bar at the top and read the result of the &lt;a href="https://support.google.com/webmasters/answer/9012289" rel="noopener noreferrer"&gt;URL Inspection tool&lt;/a&gt;. Write down three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the status under "Page indexing"&lt;/li&gt;
&lt;li&gt;the last crawl date&lt;/li&gt;
&lt;li&gt;the canonical Google selected&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then click "Test live URL". The live test fetches the page as it is now, which tells you whether you are debugging the current build or an old crawl.&lt;/p&gt;

&lt;p&gt;For a site-wide view, the &lt;a href="https://support.google.com/webmasters/answer/7440203" rel="noopener noreferrer"&gt;Page indexing report&lt;/a&gt; groups URLs by reason. Its example lists stop at 1,000 URLs, so drill into single pages with URL Inspection.&lt;/p&gt;

&lt;p&gt;The status is your error message. Everything below maps a status to a check.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Status code: does the page return 200?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sI&lt;/span&gt; &lt;span class="nt"&gt;-A&lt;/span&gt; &lt;span class="s2"&gt;"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  https://example.com/blog/my-post | &lt;span class="nb"&gt;head&lt;/span&gt; &lt;span class="nt"&gt;-n&lt;/span&gt; 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You want &lt;code&gt;HTTP/2 200&lt;/code&gt;. Anything else explains a lot:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;301/302:&lt;/strong&gt; Search Console reports "Page with redirect". Google indexes the target. Update internal links and the sitemap to the final URL and stop submitting the old one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;401/403:&lt;/strong&gt; often a WAF, bot protection or a staging password left on. Check your CDN rules for anything that challenges unknown bots.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;404/410:&lt;/strong&gt; the route is missing in production. Common after a framework migration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;5xx:&lt;/strong&gt; check the Crawl Stats report and your logs for the crawl date Google shows. Google explains how each code is handled in &lt;a href="https://developers.google.com/search/docs/crawling-indexing/http-network-errors" rel="noopener noreferrer"&gt;HTTP status codes and network errors&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Spoofing the user agent only shows what your server returns to that string. Your firewall may treat the real Googlebot differently, so the live test in Search Console stays the final word.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Directives: is something saying noindex?
&lt;/h2&gt;

&lt;p&gt;Two places to look. The response header:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sI&lt;/span&gt; https://example.com/blog/my-post | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; x-robots-tag
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the HTML:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; https://example.com/blog/my-post | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-io&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;meta[^&amp;gt;]*robots[^&amp;gt;]*&amp;gt;'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If either contains &lt;code&gt;noindex&lt;/code&gt;, nothing else matters until it's gone. Usual suspects: an SEO plugin setting, a &lt;code&gt;NODE_ENV&lt;/code&gt; check that ships the staging tag to production, or a reverse proxy adding a header to every route. See &lt;a href="https://developers.google.com/search/docs/crawling-indexing/block-indexing" rel="noopener noreferrer"&gt;Block indexing with noindex&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. robots.txt: is the path blocked?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; https://example.com/robots.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look for a &lt;code&gt;Disallow&lt;/code&gt; that matches your path, including wildcard rules such as &lt;code&gt;Disallow: /*?&lt;/code&gt;. The robots.txt report in Search Console shows the version Google last fetched. Remember that robots.txt controls crawling, not indexing: a blocked page can't be crawled, so Google can't see a noindex on it either. Reference: &lt;a href="https://developers.google.com/search/docs/crawling-indexing/robots/intro" rel="noopener noreferrer"&gt;Introduction to robots.txt&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Canonical: are you pointing somewhere else?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; https://example.com/blog/my-post | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-io&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;link[^&amp;gt;]*canonical[^&amp;gt;]*&amp;gt;'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The canonical should be the page itself, in its final form: same protocol, same host, same trailing-slash convention. Templating bugs are common here. A canonical hard-coded to the homepage, or built from a request header behind a proxy, turns every page into a duplicate. If Search Console says "Google chose different canonical than user", read &lt;a href="https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls" rel="noopener noreferrer"&gt;Consolidate duplicate URLs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Rendering: is the content in the HTML Google sees?
&lt;/h2&gt;

&lt;p&gt;Compare raw HTML with what the browser shows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; https://example.com/blog/my-post | &lt;span class="nb"&gt;sed&lt;/span&gt; &lt;span class="s1"&gt;'s/&amp;lt;[^&amp;gt;]*&amp;gt;//g'&lt;/span&gt; | &lt;span class="nb"&gt;wc&lt;/span&gt; &lt;span class="nt"&gt;-w&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A client-rendered page can return a few dozen words of shell. Google does render JavaScript, but rendering can fail on blocked API calls, scripts that time out or content that only loads after a click. Open "View crawled page" in the live test and check the rendered HTML for your main text. If it's missing, server-side rendering or static generation for that route is the reliable fix. Background: &lt;a href="https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics" rel="noopener noreferrer"&gt;JavaScript SEO basics&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Discovery: can Google find the page at all?
&lt;/h2&gt;

&lt;p&gt;If the URL isn't in the Page indexing report, Google doesn't know it exists yet. Check two things.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Internal links.&lt;/strong&gt; At least one indexed page should link to it with a real anchor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="c"&gt;&amp;lt;!-- crawlable --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"/blog/my-post"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;My post&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;

&lt;span class="c"&gt;&amp;lt;!-- not crawlable --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;onclick=&lt;/span&gt;&lt;span class="s"&gt;"router.push('/blog/my-post')"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;My post&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Google's rules are in &lt;a href="https://developers.google.com/search/docs/crawling-indexing/links-crawlable" rel="noopener noreferrer"&gt;crawlable links&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sitemap.&lt;/strong&gt; Confirm the final URL is listed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; https://example.com/sitemap.xml | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s2"&gt;"https://example.com/blog/my-post"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A result of 0 means your sitemap generator skipped it. Check the build filters and the &lt;code&gt;lastmod&lt;/code&gt; value too.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. The two "not indexed" statuses
&lt;/h2&gt;

&lt;p&gt;These two cause the most confusion, because nothing is technically broken.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Discovered - currently not indexed.&lt;/strong&gt; Google knows the URL but hasn't crawled it yet. Its help text says the crawl was rescheduled because it was "expected to overload the site". On real projects that usually means slow response times or thousands of low-value URLs (faceted filters, sort parameters, tag archives) competing for crawl time. Fix server latency and stop exposing parameter URLs that add nothing. Large sites should read the &lt;a href="https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget" rel="noopener noreferrer"&gt;crawl budget guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Crawled - currently not indexed.&lt;/strong&gt; Google fetched the page and decided not to keep it for now. No header or tag will change that. Look at the content: thin pages, templated pages that differ by one word, and near-copies of other URLs are the usual reasons. Merge or expand them, then add internal links from related pages. Google's &lt;a href="https://developers.google.com/search/docs/fundamentals/creating-helpful-content" rel="noopener noreferrer"&gt;helpful content guidance&lt;/a&gt; is the reference.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Soft 404&lt;/strong&gt; belongs here too. Your app returns 200 with an empty state ("No results", "Product not found"). Return a real 404 or 410, or put content on the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Verify, then wait on a schedule
&lt;/h2&gt;

&lt;p&gt;After a fix, request indexing once in URL Inspection. Google states that repeated requests for the same URL don't speed anything up, and there is a daily quota.&lt;/p&gt;

&lt;p&gt;Google's own timing: crawling a new page can take "a week or so", and "Validate fix" in the Page indexing report "typically takes up to about two weeks" (&lt;a href="https://support.google.com/webmasters/answer/7440203" rel="noopener noreferrer"&gt;source&lt;/a&gt;). A practical loop:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Day&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Ship the fix, request indexing once&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Inspect again&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;Still out? Re-run checks 5 to 7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;28&lt;/td&gt;
&lt;td&gt;Rewrite or merge the page before resubmitting&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The checklist, copy-paste version
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ ] URL Inspection status, crawl date and Google canonical noted
[ ] 200 OK, no redirect, no login, no WAF challenge
[ ] No noindex in X-Robots-Tag or meta robots
[ ] robots.txt does not match the path
[ ] Self-referencing canonical, exact final URL
[ ] Main content present in rendered HTML
[ ] Content is not a near-copy of another URL
[ ] Linked from an indexed page with a real &amp;lt;a href&amp;gt;
[ ] Listed in sitemap.xml under the final URL
[ ] Fast responses, no recent errors in Crawl Stats
[ ] Indexing requested once after the fix
[ ] Re-checked on day 7, 14 and 28
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  When an outside tool helps
&lt;/h2&gt;

&lt;p&gt;An indexing service makes sense when Google hasn't discovered or crawled a page that is otherwise fine. It can't fix a noindex, a robots.txt block, a wrong canonical, an error page or thin content. Fix those first, or you pay to resubmit a page Google will reject again.&lt;/p&gt;

&lt;p&gt;For pages on sites you don't own, such as backlinks, Search Console shows nothing. A bulk index checker is the only practical way to audit those.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Written by the IndexerPal team.&lt;/strong&gt; We build tools for URL and backlink indexing. To check a list of URLs in Google at once, see the &lt;a href="https://indexerpal.com/index-checker" rel="noopener noreferrer"&gt;IndexerPal index checker&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>google</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
