www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ask Bjoern Hansen <...@netcetera.dk>
Subject Re: apache-api/3023: r->no_cache should set the Pragma and maybe the cache-control header
Date Thu, 17 Sep 1998 16:22:42 GMT

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/


Mime
View raw message