Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Change ExpiresByType for specific remote IP

7:02 pm on Dec 6, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:May 8, 2003
votes: 0

Is there any way to have Apache send different Expires headers to a specific remote IP address? I have people doing development on IE that upload images and them can't see the new version of the image unless they empty their cache.


4:04 am on Dec 7, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
votes: 0

Not that I know of.

Your easy options seem to be:
1) Set the images to short expiry times, or mark them as must-revalidate, for the duration of the dev project.
2) Tell your developers to go into "Internet Options" and turn off browser caching (set the browser cache size or expiry to zero).

Option 1 will increase server load.
Option 2 is OK, but do remind your developers to turn their caching back on after testing, or *they* will suffer slow page-loading on all sites in the future.

A final option would be to rewrite all image URL requests to a script, and have that script open and serve the requested image files - along with the cache-control headers appropriate for the requesting client. This script might also have to handle generating a proper 404-Not Found response code for non-existent images, depending on how you code the rewrite.

All of the above assumes that you are already returning a proper Last-Modified timestamp for these image requests, but that IE is ignoring or mis-handling it (which wouldn't surprise me).