Make MD output cacheable

Created on 12 March 2025, 28 days ago

Problem/Motivation

MD output should be cached just like HTML.
Current cache headers:
cache-control: must-revalidate, no-cache, private
x-drupal-cache: UNCACHEABLE (no cacheability)
x-drupal-dynamic-cache: UNCACHEABLE (no cacheability)

Steps to reproduce

Request an MD page: https://mysite.com/node/19.md
Check response headers in devtools.

Proposed resolution

Set MD output to be cacheable.
Cache headers for anonymous users:
cache-control: max-age=86400, public
x-drupal-cache: HIT
x-drupal-dynamic-cache: HIT

Remaining tasks

User interface changes

none

API changes

tbd

Data model changes

tbd

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States christophweber

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

Comments & Activities

Production build 0.71.5 2024