File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55$ _SERVER ['BASE_PAGE ' ] = 'docs.php ' ;
66include_once __DIR__ . '/include/prepend.inc ' ;
77
8- site_header ("Documentation " , ["current " => "docs " ]);
9-
8+ site_header (
9+ "Documentation " ,
10+ [
11+ "current " => "docs " ,
12+ 'intro ' => $ intro ,
13+ 'cache_control ' => 5 * 60 , // 5 minutes
14+ ]
15+ );
1016?>
1117
1218<h1>Documentation</h1>
Original file line number Diff line number Diff line change @@ -325,6 +325,7 @@ function manual_setup($setup): void {
325325 "prev " => $ setup ["prev " ],
326326 "next " => $ setup ["next " ],
327327 "cache " => $ lastmod ,
328+ 'cache_control ' => 5 * 60 , // 5 minutes
328329 "description " => $ setup ["this " ][2 ] ?? null ,
329330 ];
330331 site_header ($ setup ["this " ][1 ] . " - Manual " , $ config );
Original file line number Diff line number Diff line change 135135 ],
136136 'css ' => ['home.css ' ],
137137 'intro ' => $ intro ,
138+ 'cache_control ' => 5 * 60 , // 5 minutes
138139 ],
139140);
140141
Original file line number Diff line number Diff line change 7575site_header ("Releases " , [
7676 'current ' => 'downloads ' ,
7777 'css ' => '/styles/releases.css ' ,
78+ 'cache_control ' => 60 * 60 , // 60 minutes
7879]);
7980
8081echo "<h1>Unsupported Historical Releases</h1> \n\n" ;
You can’t perform that action at this time.
0 commit comments