WordPress.org

Make WordPress Core

Opened 5 months ago

Closed 4 months ago

Last modified 3 hours ago

#46054 closed defect (bug) (fixed)

wp_die handlers should return no-cache headers.

Reported by: spacedmonkey Owned by: SergeyBiryukov
Milestone: 5.2 Priority: normal
Severity: normal Version: 5.1
Component: Site Health Keywords: has-patch servehappy
Focuses: Cc:

Description

All wp_die handlers should return no cache headers to make sure that no error state is cached.

Attachments (1)

46054.diff (1.2 KB) - added by spacedmonkey 5 months ago.

Download all attachments as: .zip

Change History (10)

@spacedmonkey
5 months ago

#2 @pento
5 months ago

  • Milestone changed from Awaiting Review to 5.1

Moving to 5.1 for review.

This ticket was mentioned in Slack in #core-php by spacedmonkey. View the logs.


5 months ago

This ticket was mentioned in Slack in #core-php by spacedmonkey. View the logs.


5 months ago

#5 @flixos90
5 months ago

  • Milestone changed from 5.1 to 5.2

#6 @flixos90
5 months ago

  • Priority changed from high to normal

This ticket was mentioned in Slack in #core-php by spacedmonkey. View the logs.


5 months ago

#8 @SergeyBiryukov
4 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 44828:

Bootstrap/Load: Add nocache_headers() to all wp_die() handlers.

Props spacedmonkey.
Fixes #46054.

#9 @spacedmonkey
3 hours ago

  • Component changed from Bootstrap/Load to Site Health
Note: See TracTickets for help on using tickets.