Gzip_static

The gzip_static static module seems like something that could help us
during high traffic events. I didn’t see a wiki entry for it…is there
some documentation?

Thanks…and happy new year to the list!

On Sat, Dec 29, 2007 at 03:16:45AM -0500, Ian M. Evans wrote:

The gzip_static static module seems like something that could help us
during high traffic events. I didn’t see a wiki entry for it…is there
some documentation?

./configure --with-http_gzip_static_module …

 location /js/ {
     gzip_static   on;

     # common directives with gzip filter module
     gzip_http_version   1.1;
     gzip_proxied        expired no-cache no-store private auth;
     gzip_disable        "MSIE [1-6]\.";
     gzip_vary           on;
 }

Then a request /js/prototype.js will be handled by /js/prototype.js or
by precompressed /js/prototype.js.gz if it is exist.

Try to keep the same keep modification time of both files.

On Sat, Dec 29, 2007 at 04:45:28PM +0000, Evan M. wrote:

Added docs to the wiki:

http://wiki.codemongers.com/NginxHttpGzipStaticModule

Thank you. Could you also add

gzip_disable regex [regex …];

It disables gzipped content for browsers with matched User-Agent.
The directive works for both gzip_static and gzip.

Igor S. <[email protected]…> writes:

On Sat, Dec 29, 2007 at 03:16:45AM -0500, Ian M. Evans wrote:

The gzip_static static module seems like something that could help us
during high traffic events. I didn’t see a wiki entry for it…is there
some documentation?

Added docs to the wiki:

http://wiki.codemongers.com/NginxHttpGzipStaticModule

E

Igor S. <[email protected]…> writes:

Thank you. Could you also add

gzip_disable regex [regex …];

It disables gzipped content for browsers with matched User-Agent.
The directive works for both gzip_static and gzip.

Done:

http://wiki.codemongers.com/NginxHttpGzipModule
http://wiki.codemongers.com/NginxHttpGzipStaticModule

Evan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs