[KLUG Members] apache question
Adam Williams
members@kalamazoolinux.org
Mon, 15 Dec 2003 15:31:23 -0500
> > I have an internal website running on a linux box. We are doing a
> > lot of updates to it right now. To see the updates I need to restart
> > the apache service.
> By "see the updates" I take it you're looking at them with a browser.
> It might not be the server's cache but your browser's cache that is the
> problem.
> The solution might be as simple as holding down your shift key when you
> hit "Reload" on your browser, which forces it to get a fresh copy from
> the server.
Yep!
You might also have some intermediary cache in-play. Recent versions of
things like Squid exhibit this behaviour very rarely (assuming NTP is
used to sync clocks), but things like M$ proxy server are notorious for
serving up stale content.
> What is "it" you want forced to look for updates, Apache? Most new
> connections get the newest copy. If you've visited the site and seen
> the page before, have you tried just adding an extra GET value to the url?
> http://mysite.com/mypage.html?killcache=1234
> Then just keep changing the 1234 to some other number to keep seeing the
> newest version of the page.
The above will work, but might not help any references images that have
changed.