Changes with Apache 1.3.21
+ *) mod_proxy - fix for Pragma: nocache (HTTP/1.0 only)
+ [Kim Bisgaard <kib@dmi.dk>] PR #5668
+
*) PORT: Some Cygwin changes, esp. improvements for dynamic loading,
and cleanups. [Stipe Tolj <tolj@wapme-systems.de>]
const char *proxyhost, int proxyport)
{
const char *strp;
- char *strp2;
+ char *strp2, *pragma;
const char *err, *desthost;
int i, j, sock, len, backasswards;
array_header *reqhdrs_arr;
if ((datestr = ap_table_get(resp_hdrs, "URI")) != NULL)
ap_table_set(resp_hdrs, "URI", proxy_location_reverse_map(r, datestr));
+ /* If "Pragma: no-cache" set nocache and make reply un-buffered to
+ /* ensure timely delivery */
+ if (((pragma = ap_table_get(resp_hdrs, "Pragma")) != NULL &&
+ ap_proxy_liststr(pragma, "no-cache"))) {
+ nocache = 1;
+ r->connection->client->flags &= ~B_WR;
+ }
+
/* check if NoCache directive on this host */
if (nocache == 0) {
for (i = 0; i < conf->nocaches->nelts; i++) {