Ngx_http_clear_last_modified in addition_filter_module

Hi Igor,

I have noted that in the addition_filter_module the last_modified field
is not cleared, like it is done in ssi and sub filter modules.

What is the reason?

Thanks Manlio P.

On Tue, Dec 11, 2007 at 08:56:52PM +0100, Manlio P. wrote:

I have noted that in the addition_filter_module the last_modified field
is not cleared, like it is done in ssi and sub filter modules.

What is the reason?

I consider that after addition_filter_module the response body is
mostly the same. The filter simply adds some banners, etc, that
have no relation to the body content.

The SSI filter, on other hand, may change body considerably.
For example, SSI template may have header/footer and may include
external
main body.

Igor S. ha scritto:

Right, but the added content can change, and this is not handled by
nginx (well, not a real problem and taking care of the Last-Modified
time of all included resources can be only a complication).

By the way, I have just do some test like:

     location /wsgi-read {
         add_after_body /wsgi-read/usr/local/nginx/ssi.txt;

         wsgi_pass /usr/local/nginx/nginx-read.py;
     }

That is, using as after_body a resource that, in turn, uses after_body.

nginx does not report errors, but the page is not rendered.

[…]

Thanks Manlio P.

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