Skip to content

Commit 17a636a

Browse files
committed
Set cache header for documentation downloads
1 parent 772d751 commit 17a636a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

public/download-docs.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@
3838
</div>
3939
';
4040

41-
site_header("Download documentation", ["current" => "docs"]);
41+
site_header(
42+
"Download documentation",
43+
[
44+
"current" => "docs",
45+
'cache_control' => 5 * 60, // 5 minutes
46+
]
47+
);
4248

4349
// Format to look for
4450
$formats = [

0 commit comments

Comments
 (0)