Add content-length to downloads

This commit is contained in:
Jonathan Cremin 2015-08-09 20:42:52 +01:00
parent 5e9d93a3d3
commit 9ccf3d855e

View file

@ -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');