update kirby to v5 and add refresh cache panel view button
This commit is contained in:
commit
9a86d41254
466 changed files with 19960 additions and 10497 deletions
|
|
@ -287,15 +287,14 @@ class Header
|
|||
*/
|
||||
public static function download(array $params = []): void
|
||||
{
|
||||
$defaults = [
|
||||
$options = [
|
||||
'name' => 'download',
|
||||
'size' => false,
|
||||
'mime' => 'application/force-download',
|
||||
'modified' => time()
|
||||
'modified' => time(),
|
||||
...$params
|
||||
];
|
||||
|
||||
$options = array_merge($defaults, $params);
|
||||
|
||||
header('Pragma: public');
|
||||
header('Cache-Control: no-cache, no-store, must-revalidate');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $options['modified']) . ' GMT');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue