RSS Feed header reverts to text/html when cached

Created on 1 April 2022, about 2 years ago
Updated 28 November 2023, 7 months ago

Problem/Motivation

When viewing a Views RSS feed display uncached, the header is correctly set as application/rss+xml. However, when cached, the header is incorrectly set as text/html.

Steps to reproduce

0. Uninstall the following modules that could cache the HTTP response headers: Internal Page Cache (page_cache), Internal Dynamic Page Cache (dynamic_page_cache).
1. Create a views RSS feed display.
2. Enable caching for the view
3. View the display output in a separate tab.
4. Refresh (to load the cached version).
5. Observe that it renders as "text/html". Expected: "application/rss+xml"

Proposed resolution

MR to use

11.x: MR 4756

Set the content type header for the response in the Feed prior to preprocessing.

Remaining tasks

Review

User interface changes

NA

API changes

NA

Data model changes

NA

Release notes snippet

NA

πŸ› Bug report
Status

Fixed

Version

10.2 ✨

Component
ViewsΒ  β†’

Last updated about 3 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States grasmash

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

Merge Requests

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.69.0 2024