meta refresh and expires

Ok, Lazyweb, earn your keep.

In the Gronk UI, the playlist page reloads every 30 seconds. However, all of the inlined images on it reload too, and that's annoying. I want the HTML to reload (with If-Modified-Since), but I want the browser to realize that it doesn't have to hit the server at all about the images.

I have attempted to set the HTML to expire "now" and the GIFs to expire "in a week". But Mozilla and Firefox reload the GIFs every time they reload the HTML: every 30 seconds, half a dozen HTTP requests are made instead of just one, and sometimes it causes visible flicker on the images.

Is there really, still, no way to do this?

My Apache .htacess file says: <LJ-CUT text=" --More--(34%) ">

    <Files playlist.html>
      ExpiresActive On
      ExpiresByType text/html A0
    </Files>
    <Files *.gif>
      ExpiresActive On
      ExpiresByType image/gif A604800
    </Files>

Yielding the headers:

    % wget -qsO- http://.../playlist.html

      HTTP/1.1 200 OK
      Date: Thu, 05 May 2005 22:09:23 GMT
      Server: Apache
      Last-Modified: Thu, 05 May 2005 22:07:11 GMT
      ETag: "1beac-30ca-31fd21c0"
      Accept-Ranges: bytes
      Content-Length: 12490
      Cache-Control: max-age=0
      Expires: Thu, 05 May 2005 22:09:23 GMT
      Connection: close
      Content-Type: text/html; charset=iso-8859-1

      <HTML>
      <HEAD>
      <META HTTP-EQUIV="Refresh" CONTENT="30">
      ...
    % wget -qsO- http://.../up.gif

      HTTP/1.1 200 OK
      Date: Thu, 05 May 2005 22:09:23 GMT
      Server: Apache
      Last-Modified: Thu, 06 Jan 2000 05:29:16 GMT
      ETag: "6b982-56-69f96300"
      Accept-Ranges: bytes
      Content-Length: 86
      Cache-Control: max-age=604800
      Expires: Thu, 12 May 2005 22:09:23 GMT
      Connection: close
      Content-Type: image/gif

      GIF89a ...

Please don't suggest that I rewrite it all using XMLHttpRequest or Java or Flash or whatever. Obviously if I were willing to do that, I'd have done it already.

Tags: , ,
Current Music: Red Aunts -- Hate ♬

picturetile, part 2

picturetile.pl:
mission accomplished!
Tags: ,