[web-php] master: Set cache header for release page
| From: | Derick Rethans | Date: | Mon, 16 Nov 2026 18:23:19 +0000 |
| Subject: | [web-php] master: Set cache header for release page | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-34188@lists.php.net to get a copy of this message | ||
Author: Derick Rethans (derickr)
Date: 2026-11-16T18:23:14Z
Commit: https://github.com/php/web-php/commit/193a5dce1903c31150990f2e069c81eb5417b7df
Raw diff: https://github.com/php/web-php/commit/193a5dce1903c31150990f2e069c81eb5417b7df.diff
Set cache header for release page
Changed paths:
M public/releases/8.5/common.php
Diff:
diff --git a/public/releases/8.5/common.php b/public/releases/8.5/common.php
index 45d58dc8c7..bf3cf9e9c5 100644
--- a/public/releases/8.5/common.php
+++ b/public/releases/8.5/common.php
@@ -36,6 +36,7 @@ function common_header(string $description): void {
'css' => ['php85.css'],
'language_switcher' => $languages,
'theme_switcher' => true,
+ 'cache_control' => 60 * 60, // 1 hour
'meta_tags' => <<<META
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@official_php" />