>Number:         3023
>Category:       apache-api
>Synopsis:       r->no_cache should set the Pragma and maybe the cache-control 
>header
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Thu Sep 17 08:10:01 PDT 1998
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.3.2-dev
>Environment:
not relevant
>Description:
r->no_cache should set the Pragma and maybe the cache-control header and not
only an expire header which not always does the job.
>How-To-Repeat:

>Fix:
diff -c -r1.239 http_protocol.c
*** http_protocol.c     1998/08/25 09:15:31     1.239
--- http_protocol.c     1998/09/17 14:59:10
***************
*** 1295,1300 ****
--- 1295,1302 ----
      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. */
 
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]



Reply via email to