Change the 'recommended for external cache invalidation' set by the Purge module

Created on 16 January 2024, 11 months ago

Problem/Motivation

The Purge module adds a 1 year max-age option with the label '1 year (recommended for external cache invalidation)'. As described in 🐛 Design flaw? Browser won't see updated content? Active , this is bad advice since this means web browsers will also cache content for a year, and web browsers cannot be invalidated by servers. So web browsers will serve stale content until the page is explicitly refreshed.

Proposed resolution

Since we're introducing s-maxage and we're changing the label to 'Browser cache maximum age', I think we should also change the recommended value from 1 year to a very short period (e.g. 5 minutes)

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024