Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#24393 closed Cleanup/optimization (fixed)

The offline documentation zipfile download is not compressed

Reported by: Pi Delport Owned by: nobody
Component: Documentation Version:
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The documentation index page links to the following HTML archive of the Django documentation for offline use:

https://docs.djangoproject.com/m/docs/django-docs-1.7-en.zip

This file is currently 23.2 MB in size, due to the contents being stored without any compression at all (using the Store method, rather than Deflate). Compressing the contents as a zip file with default compression reduces the size to 5.7 MB.

I am guessing that there was some oversight in the build process that resulted in generating an archive without compression, and that this should be easy to fix once identified?

For background: I discovered this earlier today after struggling to download the large archive over a poor mobile connection, during a power outage. A compressed archive would have saved me enough time, effort, and data to be worth reporting this here, and i assume that other users in network-constrained environment are similarly affected by this.

Change History (4)

comment:1 by Pi Delport, 9 years ago

For the record, adding an LZMA-compressed version of the archive (.7z or .tar.xz) would reduce the size of the download further to 3 MB, or almost half the size of the zip file.

comment:2 by Tim Graham, 9 years ago

Has patch: set
Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization
Version: 1.7

comment:3 by Tim Graham, 9 years ago

Resolution: fixed
Status: newclosed

comment:4 by Pi Delport, 9 years ago

$ curl -LI https://docs.djangoproject.com/m/docs/django-docs-1.7-en.zip

Content-Length: 5598935

Thank you!

Note: See TracTickets for help on using tickets.
Back to Top