# Keep the file up to date

- Check 39.06 · llms.txt and AI formats (experimental) · Experimental
- Source: https://checklist-seo-geo.com/en/llmstxt-ai-formats-experimental/keep-file-up-date
- Keep llms.txt accurate: events that require an update, automatic link checks via cron, GitHub Actions or Laravel, cache purging and a review routine.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/llmstxt-ai-formats-experimental/keep-file-up-date.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

An `llms.txt` file goes stale as soon as a listed page changes address, disappears or stops being authoritative. Maintaining the file means three things: knowing which events require an update, automatically checking that every link still returns `200`, and reviewing the content at fixed intervals with a designated owner. Once this check is done, an error in the file is detected in less than a week, not at the next audit. The format remains experimental: no file is better than a wrong file.

## Why it matters

The llmstxt.org proposal describes a file that agents consult to choose which pages to read. It says nothing about maintenance, and no mechanism tells agents that it has changed: there is no standardized update date, nor any equivalent of the `lastmod` tag in sitemaps.

A file that is no longer maintained causes three kinds of damage:

- **Dead links**: the agent hits a 404 error and gives up or looks elsewhere.
- **Redirected links**: each link costs an extra request, and the landing page is not always equivalent to the old one.
- **False information**: a summary describing a discontinued offer or a smaller service area is read as an official statement.

Automatically generated files do not solve everything. They follow the site's structure, but they also pick up its errors: drafts published by mistake, test pages, a description never reviewed.

## What it improves

- **Reliability of the links** followed by agents that read the file.
- **Consistency** between `llms.txt`, the sitemap and the pages, see [align canonicals, sitemap and internal links](https://checklist-seo-geo.com/en/indexing-canonicalization/align-canonicals-sitemap-internal-links).
- **Accuracy of the official information** picked up by an agent.
- **Controlled cost**: an automatic check replaces an exhaustive manual review.
- **Citations and ranking**: no demonstrated effect. No practice guarantees a citation or a recommendation.

## How to check

Three questions let you assess the current state in five minutes.

**1. Do all the links return `200`?**

```bash
curl -s https://example.com/llms.txt \
  | grep -o -E '\]\(https://[^)]+\)' | sed -E 's/^\]\(//; s/\)$//' | sort -u \
  | while read -r url; do
      printf "%s %s\n" "$(curl -s -o /dev/null -w '%{http_code}' "$url")" "$url"
    done | grep -v "^200"
```

No output: the file is healthy. Otherwise, every line is a link to fix.

**2. When did the file last change?**

```bash
curl -s -o /dev/null -D - https://example.com/llms.txt | grep -i -E "last-modified|cache-control|age:"
```

A `last-modified` more than a year old on a site that publishes every month is a warning sign. For a file versioned in Git, `git log -1 --format=%cd -- public/llms.txt` gives the date of the last change.

**3. Does the file still describe the company?** Reread the title and summary: name, offer, area and audience must match the current About page.

## How to implement

### Step 1 — List the triggering events

Include this table in the team's publishing procedure:

| Event | Action in `llms.txt` | Who |
|---|---|---|
| A reference page is created (offer, pricing, major guide) | Add the link and its note | Writer |
| A listed page is deleted | Remove the link, or replace it with the page that supersedes it | Writer |
| URL change or redirect | Replace with the final URL | Developer |
| A product or service is discontinued | Remove the link and check the summary | Marketing |
| New version of the documentation or API | Link the maintained version, remove the old ones | Developer |
| Change of name, area or offer | Rewrite the title and summary | Executive or marketing |
| Domain change or switch to HTTPS | Regenerate every link, see [use absolute URLs](https://checklist-seo-geo.com/en/llmstxt-ai-formats-experimental/use-absolute-urls) | Developer |
| Redesign | Rebuild the file from the redirect plan | Project manager |

### Step 2 — Set a review routine

| Frequency | Check | Time |
|---|---|---|
| Weekly, automatic | HTTP code of each link | 0 min, alert on failure |
| Quarterly | Review of the summary, the notes and the selection of pages | 30 min |
| Yearly, or during a redesign | Reassessment of the file's value, see [measure the benefit before investing further](https://checklist-seo-geo.com/en/llmstxt-ai-formats-experimental/measure-benefit-before-investing-further) | 1 h |

Assign a named owner, as for any content that changes: see [assign an owner to each piece of content](https://checklist-seo-geo.com/en/freshness-accuracy/assign-owner-each-piece-content).

### Step 3 — Prefer generation over copying

A file generated from the same data as the site (routes, content database, documentation navigation) follows URL changes without intervention. Keep manual writing for the title, the summary and the notes, and generate the links when your tool allows it. The methods for each environment are in [list the main pages](https://checklist-seo-geo.com/en/llmstxt-ai-formats-experimental/list-main-pages).

> **Good to know:** the proposal does not provide for an update date in the file. If you add a “Last reviewed” line in the notes, it must reflect a real review. A date changed automatically with no change in content is misleading.

### Step 4 — Automate the link check

Choose the method that suits your hosting.

### Shared hosting

If the hosting provider offers scheduled tasks (`Cron Jobs` in cPanel, `Scheduled Tasks` in Plesk), save this script as `~/bin/check-llms.sh`:

```bash
#!/usr/bin/env bash
set -u

failures=0

for url in $(curl -s https://example.com/llms.txt | grep -o -E '\]\(https://[^)]+\)' | sed -E 's/^\]\(//; s/\)$//' | sort -u); do
  code=$(curl -s -o /dev/null -w '%{http_code}' "$url")

  if [ "$code" != "200" ]; then
    echo "$code $url"
    failures=$((failures + 1))
  fi
done

if [ "$failures" -gt 0 ]; then
  echo "$failures failing link(s) in llms.txt"
  exit 1
fi
```

Make it executable (`chmod +x ~/bin/check-llms.sh`), then schedule it every Monday at 7 a.m.:

```txt
0 7 * * 1 /home/utilisateur/bin/check-llms.sh
```

Cron emails any output of the command to the address configured in the control panel: the script writes nothing when all is well.

### GitHub Actions

If the site is versioned on GitHub, create `.github/workflows/llms-txt.yml`:

```yaml
name: llms.txt check

on:
  schedule:
    - cron: '0 6 * * 1'
  workflow_dispatch:

jobs:
  check-links:
    runs-on: ubuntu-latest
    steps:
      - name: Check the llms.txt links
        run: |
          curl -fsS https://example.com/llms.txt -o llms.txt
          failures=0
          for url in $(grep -o -E '\]\(https://[^)]+\)' llms.txt | sed -E 's/^\]\(//; s/\)$//' | sort -u); do
            code=$(curl -s -o /dev/null -w '%{http_code}' "$url")
            echo "$code $url"
            if [ "$code" != "200" ]; then failures=$((failures + 1)); fi
          done
          test "$failures" -eq 0
```

A failing link makes the job fail; for a scheduled workflow, GitHub notifies the person who last modified the `cron` line. To integrate it with your other checks, see [integrate SEO, performance and accessibility tests into CI/CD](https://checklist-seo-geo.com/en/automation-quality-control/integrate-seo-performance-accessibility-tests-into-ci-cd).

### Laravel

Versions: Laravel 12 and 13.

Create `app/Console/Commands/CheckLlmsTxtLinksCommand.php`:

```php
<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Http;

class CheckLlmsTxtLinksCommand extends Command
{
    protected $signature = 'check-llms-txt-links';

    protected $description = 'Check that every link of llms.txt answers 200 without redirect';

    public function handle(): int
    {
        $content = Http::get(url('/llms.txt'))->throw()->body();

        preg_match_all('/\]\((https:\/\/[^)\s]+)\)/', $content, $matches);

        $urls = collect($matches[1])->unique();

        $failures = $urls->filter(function (string $url): bool {
            $this->info("Checking `{$url}`...");

            $status = Http::withoutRedirecting()->get($url)->status();

            if ($status !== 200) {
                $this->error("{$status} {$url}");
            }

            return $status !== 200;
        });

        $this->comment("Checked {$urls->count()} links, {$failures->count()} failing.");

        return $failures->isEmpty() ? self::SUCCESS : self::FAILURE;
    }
}
```

Schedule it in `routes/console.php`:

```php
use Illuminate\Support\Facades\Schedule;

Schedule::command('check-llms-txt-links')
    ->weeklyOn(1, '7:00')
    ->emailOutputOnFailure('web@example.com');
```

`emailOutputOnFailure` assumes mail sending is configured. From the command line, the command uses `APP_URL`: check that it is set to `https://example.com` in production.

### WordPress

Versions: WordPress 6.6 and later; Yoast SEO and Rank Math in their November 2026 versions.

Yoast states that its file is generated and refreshed automatically; Rank Math does not document how often it regenerates. After a significant change (a listed page deleted, permalinks changed), open `/llms.txt` and check the result; with Rank Math, use the preview link at the top of the `Edit llms.txt` tab. Links entered by hand in `Additional Content` do not follow URL changes: check them at each quarterly review. For a static file, apply the cron method above.

### Wix

Versions: Wix dashboard, paid plans with a custom domain, November 2026.

Wix maintains the file automatically as long as you have not edited it. As soon as you edit it (`SEO & GEO`, `Go to llms.txt`, `More Actions > Edit file`), automatic updates stop: you become responsible for every change. `Reset to Default` restores automatic generation, at the cost of your edits.

### Cloudflare

Versions: Cloudflare dashboard, all plans, November 2026.

By default, Cloudflare does not cache `.txt` files other than `robots.txt`. If a cache rule does, purge `https://example.com/llms.txt` after each change in [Caching > Configuration](https://dash.cloudflare.com/?to=/:account/:zone/caching/configuration), `Custom Purge`, or in your deployment script:

```bash
curl -s -X POST "https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/purge_cache" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"files":["https://example.com/llms.txt"]}'
```

The API token must have the cache purge permission for the zone.

### Nginx

Versions: Nginx 1.24 and later.

Limit how long intermediaries cache the file, so that a fix becomes visible quickly:

```nginx
location = /llms.txt {
    charset utf-8;
    add_header Cache-Control "public, max-age=3600";
    try_files $uri =404;
}
```

One hour is a compromise, not an official recommendation. Reload: `sudo nginx -t && sudo systemctl reload nginx`.

## Common mistakes

- **Updating the sitemap and forgetting `llms.txt`**: include the file in the same publishing procedure.
- **Checking the HTTP code without rereading the text**: a link returning `200` may lead to a page that no longer says what the note announces.
- **Editing a generated file** (Wix, WordPress plugin) without knowing that automatic updates stop or that the change will be overwritten.
- **Keeping a redirected link** because it “works”: replace it with the final URL.
- **An automatic review date** with no real review.
- **Forgetting secondary files** (`/docs/llms.txt`, per-language files) in the automatic check.
- **No one designated**: without an owner, the quarterly review never happens.

## Frequently asked questions

### How often should the llms.txt file be updated?

Update the llms.txt file whenever a page it lists is created, deleted or changes URL, and whenever the offer or the name changes. In addition, check the links automatically every week and review the text every quarter. The llms.txt proposal sets no frequency: the pace at which your site changes determines it.

### Should llms.txt include an update date?

The llms.txt proposal does not provide for one, and defines no date field. You can add a last-reviewed mention in the header notes if it corresponds to a real review. Avoid a date changed automatically at each generation with no change in content: it would suggest a check that never took place.

### Do WordPress plugins update llms.txt on their own?

Partly. Yoast SEO states that its llms.txt file is generated and refreshed automatically, while Rank Math does not document how often it regenerates. In both cases, links entered by hand do not follow URL changes, and a page published by mistake can appear in the file. Check the file after every significant change to the site and at each quarterly review.

### What should I do with an llms.txt link that returns a 404 error?

Replace the link with the page that took over the content, if there is one, using its final URL and an updated note. If the content disappeared with no equivalent, simply remove the line from the llms.txt file. While you are at it, check that the deleted page is no longer linked in the sitemap or the internal links, and purge the CDN cache if the file is cached there.

## Resources

- [llmstxt.org: the llms.txt proposal](https://llmstxt.org/)
- [Laravel: task scheduling](https://laravel.com/docs/13.x/scheduling) and [HTTP client](https://laravel.com/docs/13.x/http-client)
- [GitHub Docs: the schedule event for workflows](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#schedule)
- [Cloudflare: purge files by URL](https://developers.cloudflare.com/cache/how-to/purge-cache/purge-by-single-file/)
- [Wix Help: understanding your site's llms.txt file](https://support.wix.com/en/article/understanding-your-sites-llmstxt-file)
- [Yoast: llms.txt feature](https://yoast.com/features/llms-txt/) and [Rank Math: llms.txt](https://rankmath.com/kb/llms-txt/)

Next steps: [check whether the targeted systems read these files](https://checklist-seo-geo.com/en/llmstxt-ai-formats-experimental/check-whether-targeted-systems-read-these-files) and [monitor HTTP status codes and uptime](https://checklist-seo-geo.com/en/automation-quality-control/monitor-http-status-codes-uptime).
