Welcome! Log In Create A New Profile

Advanced

Re: Gziping static files

Ryan Malayter
July 26, 2011 10:40AM
On Fri, Jul 15, 2011 at 3:29 AM, sarim <nginx-forum@nginx.us> wrote:
> Hi,
> I know nginx's gzip module can compress files onthefly, and gzip_static
> module can serve manually gziped file.
>
> Now is there any module/way available to cache the onthefly compression
> ? I dont want to compress all static files manually, i want nginx to
> compress a file first, then save it to cache, then serve the cached
> gziped version as long as the main file is not changed.
>
> Is there any way around ?
>

There are rumors of a gzip cache feature coming that I have seen here.
For now, you can have nginx proxy to itself, with the intermediate
doing the compression. So it would be something like this:

nginx server on port 80/443 listening on public-facing IP
proxy_cache enabled
gzip enabled
|
V
nginx server on localhost port 20080
gzip enabled
|
V
your back-end server


--
RPM

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Gziping static files

sarim July 15, 2011 04:29AM

Re: Gziping static files

Ryan Malayter July 26, 2011 10:40AM

Re: Gziping static files

sarim August 11, 2011 05:44AM

Re: Gziping static files

rmalayter August 11, 2011 09:50AM

Re: Gziping static files

Akins, Brian July 26, 2011 12:00PM

Re: Gziping static files

sarim August 11, 2011 10:03AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 315
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready