Decrease the size of data, typically to preserve space or reduce network bandwidth required while transmitting files. It can be applied to files, folders, disks, etc.
Questions tagged [compression]
418 questions
1
vote
0 answers
haproxy compression type regex/wildcard
As stated in haproxy docs, we can use "compression type" with list of mime types.
In my case, there is REST API backend, and the compression should be applied to multiple vendor-specific versioned mime types, e.g. application/vnd.sometype-v10+json…

Andrey Regentov
- 483
- 1
- 4
- 11
1
vote
3 answers
How Do We gZip a Website?
A beginner here so please bear with me!
I've just been assessing my websites performance and have been told that everything should be sent gzipped, namely:
The CSS files
The JS files
and the page itself
How do I go about doing this and should I, are…
Thomas Carter
1
vote
1 answer
Apache mod_deflate MIME type settings
CPanel gives me options about what MIME content types to compress with Apache's mod_deflate, as shown below.
Are there disadvantages to having a long list of MIME types (eg. slower server response)? In other words, is there any reason I shouldn't…

sondra.kinsey
- 293
- 1
- 2
- 7
1
vote
1 answer
How to enable IIS to always precompress / pregzip a certain file?
I have a 4mb js file (gzipped version is 900kb). The file is like this: main.328479fdsdf.js (so it has a hash based on the content).
IIS seems to compress my big js file only if is accessed 2 times in 10 seconds. However if I have a user on 3G every…

Alin C
- 111
- 2
1
vote
2 answers
zip I/O error: File too large zip error: Output file write failure (write error on zip file)
I have a simple backup server that rsyncs several network shares and then compresses them into a zip file that is loaded onto tapes.
zip -r /media/1tb/backup/compressed/reports.zip /media/1tb/backup/nightly/reports/
And about half way through i…

The Digital Ninja
- 764
- 4
- 10
- 25
1
vote
1 answer
bzip2 and compressed stream concatenation
With gzip you can do something like this:
gzip -c file1 > output.gz
gzip -c file2 >> output.gz
gzip -c file3 >> output.gz
and when you uncompress output.gz it will contain concatenated values of file1 file2 and file3.
Can the same be done reliably…
user13185
1
vote
2 answers
Modern transparent folder compression in Ubuntu 18.04
I'm looking for a way to transparently compress files in a directory, that will be shared over SMB.
I have a server, running Ubuntu 18.04.1 LTS, and I use it for file storage. Mainly what I want to do is transparently compress a folder containing…

Jarrod Pfeiffer
- 11
- 1
- 3
1
vote
1 answer
Can automatic decompression be configured in .htaccess?
I've got a bunch of static files (eg index.xhtml) in an Apache2 web root. I don't have control over the server's configuration, but am allowed to modify .htaccess in the web root.
I would like to pre-compress the files (eg index.xhtml.gz) to improve…

John Millikin
- 141
- 2
1
vote
1 answer
Apache2 vs. PHP.ini compression
Are there any benefits to using Apache2s' mod_deflate compression over setting zlib.output_compression = On and zlib.output_compression_level = 1 in php.ini?
I'm trying to come up with a good compression strategy which compresses all PHP output,…

Jeff
- 1,416
- 3
- 28
- 50
1
vote
0 answers
Why do i get gzip css and js with full size instead of compressed size
I am doing some tests with gzip, I have manually compressed the CSS and JS with gzip. The size of the JS has dropped from 33kb to 7kb.
The problem is when I look in the network tab in Chrome or Firefox it shows me that the file has 33kb instead of…

EPurpl3
- 111
- 3
1
vote
3 answers
Corrupted zip file after using split and cat on Linux
I had to split this 2.6 GB zip-file in order to send it thru a slow uplink. I did this:
split -b 879m BIGFILE.zip
This created xaa, xab & xac which I uploaded to the remote server. After the transfer finished I verified each one of these 3 pieces…
JFA
1
vote
2 answers
Bash script to convert archive to .zip format
I'm looking for a flexible bash script to do the following:
Convert .rar, .tar, .tar.gz, .bz2, .7z archives to .zip format
Keep all folder structures and filenames as source archive.
Convert it quietly, outputs "error" on failure and outputs…

jack
- 1,725
- 5
- 21
- 25
1
vote
0 answers
Can I delete SSOServer Logs? (VMware)
I have a client that has a large amount of log files within the SSOServer Logs folder. I want to compress/delete these files so that it makes room. Will this affect VMware? Most are text docs but some look to be more impotent, but there in a log…

Ryan Foy
- 11
- 2
1
vote
2 answers
More accurate way to obtain ZFS filesystem size?
I've been having trouble backing up a ZFS filesytem due to my backup devices running out of space.
The first time I forgot that compression was enabled. However, for the second attempt, I got the compression ratio of the file system, and also got…

Louis Waweru
- 755
- 1
- 9
- 29
1
vote
0 answers
Send compressed requests with Apache
I have looked at simlar questions but they do not cover my scenario. Example:
Is it possible to enable http compression for requests?
Scenario:
Server A is running a Service which generates large XML files. On Server A, Apache is installed as a…

Jasper
- 111
- 1