php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #41999 Gzip folder, Unzip if not Accept Type gzip.
Submitted: 2007-07-15 09:32 UTC Modified: 2007-07-15 13:32 UTC
From: isawhim at gmail dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.3 OS: unix/linux
Private report: No CVE-ID: None
 [2007-07-15 09:32 UTC] isawhim at gmail dot com
Description:
------------
I am aware that there is an option to use Gzip, if a browser asks for (Accept Type: gzip)... However, what was once a scarce option, is now almost a standard.

With 90% of the browsers ASKING for Gzip, wouldn't it make more sense to have entire folders "Pre-compressed" at the max-compression... Then deliver them to that 90%, without server-side processing. Then, when that 10% asks for uncompressed, the server simply deflates the file, which is also faster, for that small minority.

Hmmm, 90% work-load reduced, not having to compress every bit of data. Another 50% speed-gain from decompress, as opposed to compress, on that remaining 10%... Plus the bonus of all that Prezipped content, stored on the server. (Gain of 80% in unused space, should also result in faster speeds, server-side.)

You would only need to have a special CFTP or CHTML or SCHTML access gateway, or arrangement in cPanel, or something similar. (Since those files would be un-editable by normal editing.)

You would have to FORCE this arrangement into ONE special type of folder. (So that you KNOW where to put the things, pre-compressed. Or use a SYNC to input/extract files for addition/removal.)

Otherwise, they would react like normal. (But in reverse. Unzipping, if no gzip accept, and just sending if gzip accept requested.)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-15 13:32 UTC] johannes@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

php.net has nothing to do with cpanel or other things you're assing about.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 15 17:00:02 2025 UTC