[thelist] Uncaching content

Lee kowalkowski lee.kowalkowski at googlemail.com
Thu Apr 27 16:31:12 CDT 2006


On 27/04/06, Kevin Martin <evolt at brasscannon.net> wrote:
> > Well what caching directives have you specified for the IMAGES?
> Ooh, how does one do that?!

Well, if your images are being served directly from the file system by
your HTTP / Web Server, you need to look into the server's
configuration.

In Apache, for instance, you can use the mod_expires module to
configure expiry header values, combined with the <filesmatch>
directive to set them for specific files if necessary:
http://www.websiteoptimization.com/speed/tweak/cache/.

You can do this in either the httpd.conf file or a .htaccess file. 
Providing your hosting solution offers this level of control.  If not,
you're left with finding/writing a routine to stream your image, in
which you can set your response headers.

--
LK



More information about the thelist mailing list