Add content-length to downloads
This commit is contained in:
parent
5e9d93a3d3
commit
9ccf3d855e
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ export function* get(id, name, size) {
|
|||
}
|
||||
|
||||
this.set('Content-type', type);
|
||||
this.set('Content-length', file.file_size);
|
||||
this.set('Expires', new Date(2020, 1).toISOString());
|
||||
this.set('Cache-control', 'max-age=2592000');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue