Ticket #1172 (new defect)

Opened 1 year ago

Last modified 3 months ago

mod_compress will suppress mod_expire

Reported by: brainsik Assigned to: jan
Priority: normal Milestone: 1.5.0
Component: mod_compress Version: 1.4.15
Severity: normal Keywords: wontfix
Cc: Blocking:
Need Feedback: 0

Description

If mod_compress is loaded before mod_expire then pages which are sent compressed will not have expires headers sent regardless of the expires configuration. By loading mod_expire first, pages can be sent both compressed and with expires headers.

I edited the documentation wiki to reflect this situation.

Attachments

Generate-a-etag-last-modified-header-for-on-the-fly.patch (1.3 kB) - added by stbuehler on 02/17/2008 04:55:47 PM.

Change History

05/08/2007 07:48:20 AM changed by brainsik

Sorry, I forgot to change the version to 1.4.13 (though I suspect it's present in 1.4.15 given the changelog for 1.4.13 -> 1.4.15).

12/10/2007 11:47:48 PM changed by brainsik

  • pending changed.

Should have added this link long ago -- this bug may be related to this one: http://trac.lighttpd.net/trac/ticket/1171

02/17/2008 04:55:25 PM changed by stbuehler

  • keywords changed from compression expires headers to wontfix.

Some comments on mod_compress:

  • Only compresses static files
  • If you don't use compress.cache-dir, it behaves like other content-producing modules, i.e. mod_fastcgi. Other modules after it get ignored (handler return code HANDLER_FINISHED).
    I attach a patch to generate etag/last-modified in this case too
  • If you use compres.cache-dir, it redirects the physical path to the compressed file, so modules after it can work with that.

So this is a problem by design and won't get fixed - mod_compress could only do it itself.

02/17/2008 04:55:47 PM changed by stbuehler

  • attachment Generate-a-etag-last-modified-header-for-on-the-fly.patch added.

Add/Change #1172 (mod_compress will suppress mod_expire)




Change Properties