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

Created on 16 January 2024, 5 months ago
Updated 17 January 2024, 5 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:

  • change the recommended value of max-age to a very short period (e.g. 5 minutes)
  • change the recommended value of all s-maxages to a very long period (e.g. 1 year)
✨ Feature request
Status

Needs review

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