excessive RAM consumption - memory leak

Todd HG lists at ruby-forum.com
Thu Feb 21 01:21:17 MSK 2008


eliott wrote:
> You may try setting expires headers for your images, if they don't
> change very often (or at all).

Do you have an example for setting the expire header. In the code 
example it shows:

    expires       24h;
    expires       0;
    expires       -1;
    expires       epoch;
    add_header    Cache-Control  private;
    server_tokens off;

I'm not sure if I should be using only:

    expires       24h;
    add_header    Cache-Control  private;
    server_tokens off;

or if I also need:

    expires       0;
    expires       -1;
    expires       epoch;
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list