httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] About file compression and transmission
Date Tue, 07 Jun 2011 11:04:12 GMT
2011/6/6 孙俊 <wiennesun@gmail.com>:
> About file compression and transmission
>
> I know that the text file you can use the apache module gzip compressed
> transmission.
>
> The file is stored in text format prior to transmission is, every time there
> is file access,
> apache the file in memory after compression by gzip module to send to the
> client.
> That there is duplication of the same file read, compression, transmission.
>
> Is there any function can use a similar gzip file compression program stored
> in advance,
> For example, jquery.js.gz, when there is access to jquery.js jquery.js.gz


mod_negotiation can provide either jquery.js or jquery.js.gz depending
on the request, for requests of "jquery", but not "jquery.js".


> sent directly to the client,
> The client to decompress the file. Rather than to repeat the compression
> jquery.js apache files.
>
>
>
>
> 关于文件压缩传输
>
> 我知道文本文件可以使用apache的gzip模块实现压缩后传输。
>
> 在文件被传输之前是以文本格式存放的,每次有文件访问,
> apache将文件读入内存经gzip模块压缩后,传送给客户端。
> 这就存在同一个文件重复的读取、压缩、传递。
>
> 是否有什么功能能将文件使用类似gzip程序进行事先压缩存放,
> 例如,jquery.js.gz,在有访问jquery.js时直接将jquery.js.gz发送给客户端,
> 让客户端进行文件的解压缩。而不再使apache重复的压缩jquery.js文件。



-- 
Eric Covener
covener@gmail.com
Mime
View raw message