The following reply was made to PR apache-api/3023; it has been noted by GNATS.

From: Ask Bjoern Hansen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Cc:  Subject: Re: apache-api/3023: r->no_cache should set the Pragma and maybe
 the cache-control header
Date: Thu, 17 Sep 1998 18:22:42 +0200 (CEST)

 Eeschk..  My tests wasn't any good.  This patch should work:
 
 *** http_protocol.c     1998/08/25 09:15:31     1.239
 --- http_protocol.c     1998/09/17 16:20:30
 ***************
 *** 1292,1300 ****
        * Control cachability for non-cachable responses if not already set by
        * some other part of the server configuration.
        */
 !     if (r->no_cache && !ap_table_get(r->headers_out, "Expires"))
           ap_table_addn(r->headers_out, "Expires",
                     ap_gm_timestr_822(r->pool, r->request_time));
 
       /* Send the entire table of header fields, terminated by an empty line. 
*/
 
 --- 1292,1303 ----
        * Control cachability for non-cachable responses if not already set by
        * some other part of the server configuration.
        */
 !     if (r->no_cache && !ap_table_get(r->headers_out, "Expires")) {
           ap_table_addn(r->headers_out, "Expires",
                     ap_gm_timestr_822(r->pool, r->request_time));
 +         ap_table_addn(r->headers_out, "Pragma", "no-cache");
 +         ap_table_addn(r->headers_out, "Cache-control", "no-cache");
 +       }
 
       /* Send the entire table of header fields, terminated by an empty line. 
*/
  
 
 
 ask
 
 -- 
 ask bjoern hansen - http://www.netcetera.dk/
 

Reply via email to