To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publishOpen lugnet.publish in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / 2266
2265  |  2267
Subject: 
Re: Forced refresh of html pages instead of getting them from browser cache
Newsgroups: 
lugnet.publish, lugnet.off-topic.geek
Date: 
Wed, 9 Aug 2000 20:02:04 GMT
Reply-To: 
mattdm@mattdm=nomorespam=.org
Viewed: 
581 times
  
Todd Lehman <lehman@javanet.com> wrote:
IIRC, there is a pragma no-cache that you can add to the HTTP headers.

Some browsers (I don't remember which ones, sorry) don't respect this. It's
best to combine this with the expires header, I think. :(

--
Matthew Miller                     --->                 mattdm@mattdm.org
Quotes 'R' Us                    --->              http://quotes-r-us.org/
Boston University Linux            --->               http://linux.bu.edu/



Message has 1 Reply:
  Re: Forced refresh of html pages instead of getting them from browser cache
 
(...) Here's what I do to guarantee no caching: void printCGIheader(){ printf("Content-type: text/html\n"); printf("Expires: 0\n"); printf("Cache-control: no-cache\n"); printf("Pragma: no-cache\n"); printf("\n"); } void printCookieHeader(char (...) (24 years ago, 9-Aug-00, to lugnet.publish, lugnet.off-topic.geek)

Message is in Reply To:
  Re: Forced refresh of html pages instead of getting them from browser cache
 
(...) IIRC, there is a pragma no-cache that you can add to the HTTP headers. --Todd (24 years ago, 9-Aug-00, to lugnet.publish, lugnet.off-topic.geek)

18 Messages in This Thread:






Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR