[web-php] master: Disable LAST_NEWS cookie as its busting the CDN cache

From: Date: Wed, 21 Oct 2026 08:10:31 +0000
Subject: [web-php] master: Disable LAST_NEWS cookie as its busting the CDN cache
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-34118@lists.php.net to get a copy of this message
Author: Derick Rethans (derickr) Date: 2026-10-21T09:10:12+01:00 Commit: https://github.com/php/web-php/commit/611cb242693c9711a255d1354c6ca1ec0ee675f4 Raw diff: https://github.com/php/web-php/commit/611cb242693c9711a255d1354c6ca1ec0ee675f4.diff Disable LAST_NEWS cookie as its busting the CDN cache Changed paths: M public/conferences/index.php M public/index.php Diff: diff --git a/public/conferences/index.php b/public/conferences/index.php index 47b5b90fc8..4e4031ec17 100644 --- a/public/conferences/index.php +++ b/public/conferences/index.php @@ -5,7 +5,9 @@ $_SERVER['BASE_PAGE'] = 'conferences/index.php'; require_once __DIR__ . '/../../include/prepend.inc'; -mirror_setcookie("LAST_NEWS", $_SERVER["REQUEST_TIME"], 60 * 60 * 24 * 365); +// Disable LAST_NEWS cookie as its busting the CDN cache — disabling temporarily (or not) — Derick +// mirror_setcookie("LAST_NEWS", $_SERVER["REQUEST_TIME"], 60 * 60 * 24 * 365); + site_header("PHP Conferences around the world", [ 'headtags' => '<link rel="alternate" type="application/atom+xml" title="PHP: Conference announcements" href="' . $MYSITE . 'feed.atom">', 'current' => 'community', diff --git a/public/index.php b/public/index.php index adb9153b6d..ce88d7ffa0 100644 --- a/public/index.php +++ b/public/index.php @@ -55,7 +55,8 @@ require_once __DIR__ . '/include/pregen-confs.inc'; require_once __DIR__ . '/../include/version.inc'; -mirror_setcookie("LAST_NEWS", $_SERVER["REQUEST_TIME"], 60 * 60 * 24 * 365); +// Disable LAST_NEWS cookie as its busting the CDN cache — disabling temporarily (or not) — Derick +// mirror_setcookie("LAST_NEWS", $_SERVER["REQUEST_TIME"], 60 * 60 * 24 * 365); $content = "<div class='home-content'>"; foreach ((new NewsHandler())->getFrontPageNews() as $entry) {

« previous php.webmaster (#34118) next »