Re: cache problem

This is a discussion on Re: cache problem within the Linux Web Servers forums, part of the Web Server and Related Forums category; > funny thing is I upgraded to 2.0.46 and the problem is still there. so I can > ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-24-2003
Joachim Ring
 
Posts: n/a
Default Re: cache problem

> funny thing is I upgraded to 2.0.46 and the problem is still there. so I can
> only assume it's a httpd.conf file problem.. but there's no cache options
> turned on unless there's NOT an option shown to turn something off...


what's in the server log for requests which seemed to have yielded
cached content? if it's 304 (not changed) your browser is caching for
whatever reason and you should either get your metatags right or learn
how to send a Cache-Control: no-cache http header and see wether that
does the trick.

also there remains the question that your internet provider is running
a transparent proxy with cache on the way to the server (aol does, for
example).

joachim
  #2 (permalink)  
Old 06-26-2003
Dj Tremors
 
Posts: n/a
Default Re: cache problem

yes your right... it is sending 304 messages as below :

192.168.1.1 - - [26/Jun/2003:18:55:04 +1000] "GET
/webchecker/images/clear.gif HTTP/1.1" 304 0
"http://10.10.0.254/webchecker/index.php?action=edit&id=1" "Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"

Below are my meta tags on the problematic server, on the test apache server
it has no meta tags and yet doesn't produce a 304 message but a 200 which is
fine..
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="Expires" CONTENT="0">

So why is the main apache server sending 304's???
"Joachim Ring" <jring@web.de> wrote in message
news:3ae246c1.0306241236.7d8c89fd@posting.google.c om...
> > funny thing is I upgraded to 2.0.46 and the problem is still there. so I

can
> > only assume it's a httpd.conf file problem.. but there's no cache

options
> > turned on unless there's NOT an option shown to turn something off...

>
> what's in the server log for requests which seemed to have yielded
> cached content? if it's 304 (not changed) your browser is caching for
> whatever reason and you should either get your metatags right or learn
> how to send a Cache-Control: no-cache http header and see wether that
> does the trick.
>
> also there remains the question that your internet provider is running
> a transparent proxy with cache on the way to the server (aol does, for
> example).
>
> joachim



  #3 (permalink)  
Old 06-27-2003
Joachim Ring
 
Posts: n/a
Default Re: cache problem

> yes your right... it is sending 304 messages as below :
>
> 192.168.1.1 - - [26/Jun/2003:18:55:04 +1000] "GET
> /webchecker/images/clear.gif HTTP/1.1" 304 0
> "http://10.10.0.254/webchecker/index.php?action=edit&id=1" "Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"
>
> Below are my meta tags on the problematic server, on the test apache server
> it has no meta tags and yet doesn't produce a 304 message but a 200 which is
> fine..
> <META http-equiv=Content-Type content="text/html; charset=utf-8">
> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
> <META HTTP-EQUIV="Expires" CONTENT="0">
>
> So why is the main apache server sending 304's???


cause it was politely asked by the browser "please send me a new
version if element has been updated since my last request". a 304 is
the answer to a conditional request.

also i don't really see how the metatags went into clear.gif. i'd try
to use mod_header to send real http headers to that effect and not the
metatag pseudo headers.

btw. does index.php get cached too?

joachim
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0