[PP-1] Set the Last-Modified HTTP response header for sitemaps

Created on 23 February 2021, about 4 years ago
Updated 3 March 2025, about 1 month ago

Problem/Motivation

simple_sitemap has a notion of the last modified time for each sitemap. It'd be handy if this value appeared as an HTTP header in the response for a sitemap. This can be useful for monitoring, debugging, validation, etc.

This is also related to ✨ Cached sitemap Fixed since if we're going to make sitemap responses cacheable, we'll want to know when each one was actually modified so that caching systems can know when to refresh, etc.

Proposed resolution

When crafting the response for a sitemap, include the last modified date as an HTTP header.

Remaining tasks

  1. Make the change.
  2. Update test coverage accordingly.
  3. Reviews / refinements / improvements.
  4. RTBC.
  5. Commit.

User interface changes

None.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Postponed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dww

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024