Pragma should not be sent out from a web server; this is for web clients
to communicate with servers/proxies.

You should send:

1. Cache-control: no-cache
2. Ensure no Last-Modified header (can't use ns_returnfile)
3. Add Expires: Thu, 01 Jan 1999 00:00:00 GMT  (don't use a date like
1990; some browsers goof and ignore older dates; don't use this for
animated GIFs that loop, or Netscape will hit your server on each loop)
4. Generate a unique Etag: header for the truly paranoid

Jim

>
>        I had this same problem.  Your headers line should work, but I think
> it's case sensative.  Mine works, and it's:
>
>        ns_set put [ns_conn outputheaders] Pragma No-Cache
>
>        Hope that helps!!
>
> Kevin Lawver
>
> In a message dated 7/14/2001 12:01:51 AM Eastern Daylight Time,
> [EMAIL PROTECTED] writes:
>
>
> > I am trying to fix it so a page is always fetched fresh from the server,
> > even when the user hits the back button (or I use it with .history(-1))
> >
> > I have tried ns_setexpires, which does not seem to work by itself.  The
> > client still seems to use cache.
> >
> > I tried adding ns_set put [ns_conn headers] Pragma: no-cache, with no
> > effect.
> >
> > How do you do this?
> >
> > Thanks!!
>

Reply via email to