lfedje Posted November 10, 2005 Posted November 10, 2005 I was reading an article from the following site http://webmaster.info.aol.com/caching.html , wherein it states the following: The following HTTP headers are used by AOL's cache to determine an object's cacheability. Web Servers can be configured to return the appropriate HTTP headers for the caching behavior you determine to be appropriate. This functionality can be used by a webmaster who may prefer to cache only pieces of their web site. The specific information for configuring a web server is server-dependent. IMPORTANT NOTE: AOL's proxy system does not read HTML. Use of the META HTTP-EQUIV tags in the content of web pages (in either HEAD or BODY) does not control the behavior of AOL's proxy caches. I would like to put the following code somewhere, but not sure where, to prevent AOL from caching my pages. This code will only allow the viewers PC to cache the page. Cache-Control: private This object can be stored in the requesting browser´s cache but not in a shared cache ... Or I could use this one. Cache-Control: no-cache This object may be held in any cache but it must be revalidated every time it is requested. But where do I put this code. It can't be in my HTML code but must reside somewhere on the server. My client can't view her site using AOL even after the refresh period of 24 hours, at which time AOL is supposed to refresh the cache. Thanks: Loren Quote
TCH-Rob Posted November 10, 2005 Posted November 10, 2005 CacheControl comes before the <HTML> tag to ensure that it is set before content is sent to the client. I see a way to do this with php by using <?phpheader("Cache-Control: private, no-cache, must-revalidate"); // HTTP/1.1 ?> I will try and find a way to do this without using some form of scripting. Quote
TCH-Rob Posted November 10, 2005 Posted November 10, 2005 I did find that you need to have full access to all the Apache files to edit your httpd.conf file. As you cannot do that this page might help; http://www.ianywhere.com/avantgo/developer...e17.html#973695 I do not know a lot about this so there may need to me a module in Apache that has to be enabled for the .htaccess trick to work. I will try and research more for you. Quote
TweezerMan Posted November 11, 2005 Posted November 11, 2005 Adding headers (such as 'Cache-Control') with a Header directive in your .htaccess file requires the mod_headers module to be loaded on the server. From what I can tell. the mod_headers module is not loaded on TCH servers (it is not on mine), so you would not be able to use this method to send a Cache-Control header. Quote
lfedje Posted November 11, 2005 Author Posted November 11, 2005 Thanks for the trouble you put yourselves throught, guy's. So I guess it can't be done! When you read all of the stuff about AOL and some others that use there own Cache, can you understand why I might want to do this? Perhaps there is something else I can do.. Loren Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.