From:             isawhim at gmail dot com
Operating system: unix/linux
PHP version:      5.2.3
PHP Bug Type:     Feature/Change Request
Bug description:  Gzip folder, Unzip if not Accept Type gzip.

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.)


-- 
Edit bug report at http://bugs.php.net/?id=41999&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41999&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41999&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41999&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41999&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41999&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41999&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41999&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41999&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41999&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41999&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41999&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41999&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41999&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41999&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41999&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41999&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41999&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41999&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41999&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41999&r=mysqlcfg

Reply via email to