httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Cameron" <pc...@bigpond.net.au>
Subject RE: [users@httpd] Apache 2.2.4 caching problem
Date Mon, 22 Dec 2008 02:22:49 GMT
For the past few days, I've been making changes to style sheets and
static web pages, and every time, the browser would display the wrong
version i.e. the previous version. Suddenly, it all seems to be working
now, and I haven't made any material changes to either the browser or
web server. I can happily make changes to style sheets and static web
pages, and both firefox and IE will display the changed content.

Thanks everyone for your help.

-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com] 
Sent: Monday, 22 December 2008 10:48 AM
To: users@httpd.apache.org; users@httpd.apache.org
Subject: Re: [users@httpd] Apache 2.2.4 caching problem


Paul Cameron wrote:
> Thanks for responding to my question.
> 
> I've since downloaded firefox. When I tried to install 
> LiveHttpHeaders, it says that it's incompatible with the current 
> version of firefox.
That's a real pity, because that plugin is really helpful for all kinds 
of HTTP issues.
I still use Firefox 2, and there it works.
I believe there is another similar plugin, but don't remember its name.

If you feel like being a bit more adventurous, you could install perl on

the machine where the browser runs, and then use the "lwp-request" 
program that comes with perl.  It does the same as a browser, from the 
command-line, and there are plenty of options to display the HTTP 
headers circulating in one and the other direction.
I always use that one, but there may be other programs, lighter to 
install, that offer similar capabilities.
One advantage of lwp-request is that you can specify exactly which HTTP 
headers the client should send to the the server.  For caching issues 
that is useful.

> 
> I started firefox without importing any history, bookmarks, etc from 
> IE, but unfortunately, when I loaded the modified webpage, it 
> displayed the old version.
Ok, then it's a real puzzle.

  The webserver runs on a virtual machine on the same
> physical machine as the browser. The virtual machine is networked via 
> TCP. Between the browser and the server, there's a router, but the 
> virtual server for Internet users is disabled. So, the only two 
> players here are the browser and the apache server.
I do not quite understand how one of these implies the other, but at 
least it does not seem that you have a real proxy server in-between, 
which would be the second most-likely source of this kind of issue.

> 
> More info ...
> I changed the style sheet, and reloaded the page. The access.log entry
> is:
> 
> "GET /css/reports.css HTTP/1.1" \
> 200 3964 "http://192.168.0.137/headerframe.html" "Mozilla/5.0 
> (Windows; U; Wind\ ows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 
> Firefox/3.0.5"
> 
> The file size of reports.css is:
> 
> [paul@Develop:/var/www/css]l reports.css
> -rw-r--r-- 1 paul dev 3985 2008-12-22 09:36 reports.css
> 
> So, it seems that apache is recognising that the content has been 
> modified but is serving a cached version of the file.

On the face of it, it does not make any sense.
If you ask directly for the stylesheet in the URL bar of the browser, 
and then save it to disk, which  one is it and what size does it have ?


In your earlier post, you mentioned something about "htcacheclean". Do
you have mod_cache active on the server ? If yes, can you turn it off ?

> 
> Do you have any further suggestions?
> 

A wild guess : what is the time on these 2 machines ?
command: date



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project. See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message