Sunday, May 1, 2005

mod_python request objects & caching

How can I set no-cache on requests served by mod_python? I am having this agravating issue of image caching that causes images that rotate in my photo gallery to show up un-rotated even though the rotated image is sitting on disk. I think the solution to this would be to set up an image handler in apache that will serve No-Cache no-cache and Pragma no-cache headers to image GETs . . . but that means no caching.

So it think the only valid solution would be to make a handler that dealt entirely with my photo gallery stuff, no more using the publisher handler. This has the makings of an interesting project.

A project for another day, because I have to get back to my XMPP/jabber (not-yet-existant) work.