×
×

Knowledgebase & Downloads

The knowledgebase provides documentation written by our team. Please select a category or search for answers.

Articles

Unknown size or unknown remaining time when downloading files

Q: When we download from Tomcat (via Apache frontend) the content length is unknown for JARs. When the extension is changed to ZIP there is no problem and progress bar shows file size and expected download time. A: This may be caused by deflate/gzip compression being turned on for JAR but not for ZIP. In such case Content-Length header will not match real data size and client software will display "Unknown size or time remaining" messages. To disable deflate/gzip for JAR (or any other specific extension) contact support (if the files are served by Tomcat via Apache frontend). We will then disable compression directly in your VirtualHost config file. If the downladed files are served directly by Apache you can edit .htaccess in the download directory. Example lines that exclude jar from being gzipped by webserver frontend can be: SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar|jar)$ no-gzip dont-vary SetEnvIfNoCase Request_URI ^/download/ no-gzip dont-vary


Powered by HostBill