David Leach wrote:
> 
> I am trying to figure out how to mimic what this call to the WOApplication
> does.  I don't
> want to make this call to the application due to the fact that I would
> prefer to control it
> on a component by component basis rather than having to turn it on or off
> for the entire
> application.  Does it set an http header, or does it insert directly into
> the body of the html
> document or does it do something else?  Any information would be extremely
> helpful.

This feature works by setting the 'Expires' HTTP response header
(HTTP/1.0 RFC 1945, 10.7), eg:

        Expires: Thu, 01 Dec 1994 16:00:00 GMT

The date should be set before now, so that the document is already
expired if received at the browser (eg using NSCalendarDate
-initWithTimeIntervalSinceNow:..).

There are also cache-control headers in HTTP/1.1 which you might want to
take a look at, but these are not very well supported by IE or NS in my
experience, whereas expires works in almost all cases.

Helge
--
MDlink online service center
http://www.mdlink.de

Reply via email to