Re: cache problem

This is a discussion on Re: cache problem within the Apache Web Server forums, part of the Web Server and Related Forums category; >Have you got the Apache server set up as a Proxy? No. >Generally, hitting just the Refresh (or ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

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

>Have you got the Apache server set up as a Proxy?
No.

>Generally, hitting just the Refresh (or Reload) button
> gets the page from the browser's local cache in places like "Temporary
> Internet Files".

This can't be 100% true.. because as per my test down below. I changed info
in the PHP test file and hit the normal refresh and gained the new info...
my problem server shows the same info after hitting a normal refresh..

>Have you looked at the following lines in the httpd.conf?:

Yes and they are all hashed out.. But so is my home apache server which
works fine.. can't figure this out...




Here is what my problematic server page has for meta tags:
<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">

----test-----

Now here's the weird part. I go to my home apache server and create a simple
page

<? print "12345"; ?>

I browse this page and I see 12345 on the screen. I now change the code on
the file to say "54321" and save it.

I hit the normal refresh button and it now shows "54321" as expected.
Obviously it fetched the page again and not local cache.



This does not work on my apache server at work. It caches the infomation
whereas the home machine shows the new info even though I have no meta tags
in the page.. just a simple print command in PHP....



"The Other Guy" <nospam@this.addy> wrote in message
news:t8iffvs50sgtp0gteq79ssdhe9n0c6nod5@4ax.com...
> On Tue, 24 Jun 2003 13:15:38 +1000, The Other Guy responded to a post
> from "Dj Tremors" <newjackswing@hotmail.com> who wrote in
> alt.apache.configuration:
>
> >I have apache 2.0.42 and it's running fine except for 1 problem, it's
> >caching pages.
> >Not the kind of cache which is specified in the httpd.conf as there is no
> >caching specified AT ALL.

>
> The no-cache meta tag does not pertain to browser caching, but to
> proxy caching. Have you got the Apache server set up as a Proxy?
>
> >I have pages with meta tags to avoid caching using the "no-cache" tags

and
> >all and yet it ignores them and still caches.

>
> If I remember correctly, the meta tag <meta http-equiv="Pragma"
> content="No-Cache"> is HTTP 1.0, and the current standard for HTTP 1.1
> is Cache Control: <meta http-equiv="Cache Control"
> content="No-Cache">. Pragma does not work with all browsers, and is
> generally used for web pages with dynamic content (I think only Google
> really honours it from a search engine standpoint). Cache-control
> headers and "temporary" redirects are meant to prevent OLD content
> from being served. Also, the "Expires" tag works for this.
>
> >When browsing with Internet Explorer I have to use the force CTRL-F5 to
> >force a fresh copy each time.. this is happening on other worksations

around
> >the internet and it's definately apache.

>
> Ctl+F5 forces the browser (IE -- in Netscape it is Shift+F5) to always
> reload a page from the original (server) source and not the client's
> browser cache. Generally, hitting just the Refresh (or Reload) button
> gets the page from the browser's local cache in places like "Temporary
> Internet Files".
>
> >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...

>
> Have you looked at the following lines in the httpd.conf?:
> #
> # To enable the cache as well, edit and uncomment the following lines:
> # (no cacheing without CacheRoot)
> #
> #CacheRoot "C:/Apache2/proxy"
> #CacheSize 5
> #CacheGcInterval 4
> #CacheMaxExpire 24
> #CacheLastModifiedFactor 0.1
> #CacheDefaultExpire 1
> #NoCache a-domain.com another-domain.edu joes.garage-sale.com
>
> See also http://httpd.apache.org/docs-2.0/mod/mod_cache.html and
> related modules (e.g.,
> http://httpd.apache.org/docs-2.0/mod/mod_mem_cache.html)
>
> There is also http://httpd.apache.org/docs-2.0/mod...ile_cache.html
> related to the line:
> #LoadModule file_cache_module modules/mod_file_cache.so
>
> >any ideas?
> >

>
> I'm not sure that I've answered or solved your problem, but also
> trying to clarify things for myself re: your post, as well as to
> provide you with some background info.
>
> HTH
> TOG
>
> --
> ./configure --prefix=~/zyterion
> Not this guy or that guy, The Other Guy.
>
> This spot may contain a satirical comment or comedic source,
> and is meant to be funny. If you are easily offended, gullible
> or don't have a sense of humour we suggest you read elsewhere.



 


Thread Tools
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

vB 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 05:04 AM.


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