Ticket #1171 (closed defect: fixed)

Opened 1 year ago

Last modified 2 months ago

mod_compress supresses Etag and Last-Modified headers

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

Description

Using mod_compress, when a page is sent gzipped, the Last-Modified and Etag headers are suppressed. This has the unfortunate effect that these pages can not be cached by a browser -- the browser lacks the required data to send If-Modified-Since and/or If-None-Match header(s) back.

Basically, as it is, you have to pick between cacheability or compression.

To reproduce, turn on compression and then make an HTTP request for a compressed page including the HTTP header "Accept-Encoding: gzip,deflate".

Attachments

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

Change History

05/08/2007 12:07:03 AM changed by brainsik

It can also suppreses the headers produced by mod_expire. See ticket #1172: http://trac.lighttpd.net/trac/ticket/1171

(follow-up: ↓ 3 ) 08/26/2007 03:29:43 AM changed by anonymous

  • pending changed.

For some reason, this is the behavior when you don't turn on compress.cache-dir. Set this to a valid server path and Etag info is sent with mod_compress.

(in reply to: ↑ 2 ) 12/10/2007 11:05:09 PM changed by brainsik

  • version changed from 1.4.13 to 1.4.18.

Replying to anonymous:

For some reason, this is the behavior when you don't turn on compress.cache-dir. Set this to a valid server path and Etag info is sent with mod_compress.

See http://trac.lighttpd.net/trac/ticket/1400 for an example of when this work-around will fail.

02/17/2008 04:56:46 PM changed by stbuehler

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

02/17/2008 04:57:16 PM changed by stbuehler

  • keywords changed from etag last-modified compress gzip to patch.

02/26/2008 04:29:50 PM changed by stbuehler

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [2085]


Add/Change #1171 (mod_compress supresses Etag and Last-Modified headers)




Change Properties
Action