Jump to content

Recommended Posts

Posted

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

Posted

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

 

<?php

header("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.

Posted

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.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...