mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
Add cache header for deployment download API
This commit is contained in:
parent
3b225b8ec3
commit
bad74bd0b8
1 changed files with 1 additions and 3 deletions
|
|
@ -104,9 +104,7 @@ class Get extends Action
|
|||
|
||||
$response
|
||||
->setContentType('application/gzip')
|
||||
->addHeader('Cache-Control', 'no-cache, no-store, must-revalidate')
|
||||
->addHeader('Expires', '0')
|
||||
->addHeader('Pragma', 'no-cache')
|
||||
->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days
|
||||
->addHeader('X-Peak', \memory_get_peak_usage())
|
||||
->addHeader('Content-Disposition', 'attachment; filename="' . $deploymentId . '-' . $type . '.tar.gz"');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue