Forum Moderators: phranque

Message Too Old, No Replies

Suppressing If-Modified-Since header

Apache/1.3.31

         

bull

6:39 am on Mar 1, 2005 (gmt 0)

10+ Year Member



Hi folks,
having implemented an image rotator that displays a random image every request, I now have the problem that still an If-Modified-Since header is begin sent. I managed to suppress that ETag thing already and added no-cache information, but is there any way to get rid of IMS? It does not seem to be a problem on Apache 2.x, but it is on 1.3.x - additionally, Header unset Last-modified does not seem to work in that case.

Header add Expires "0"
Header add Pragma "no-cache"
Header add Cache-Control "no-cache, no-store, must-revalidate"
FileETag None

HTTP/1.1 200 OK
Date: Tue, 01 Mar 2005 06:44:07 GMT
Server: Apache/1.3.31
Expires: 0
Pragma: no-cache
Cache-Control: no-cache, no-store, must-revalidate
Last-Modified: Tue, 15 Feb 2005 19:27:48 GMT
Accept-Ranges: bytes
Content-Length: 3318
Connection: close
Content-Type: image/jpeg

jdMorgan

2:31 pm on Mar 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I seem to recall someone having the opposite problem recently; Try turning ExpiresActive off for those images (put ExpiresActive off in a <directory> or <FilesMatch> container).

If-Modified-Since is a request header. We're talking about suppressing the Last-Modified server response header here, right?

Jim

bull

3:09 pm on Mar 16, 2005 (gmt 0)

10+ Year Member



Thanks Jim,
ExpiresActive off does not work though. I meant indeed the Last-Modified header.

Best
jan