You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Guenter Knauf <ef...@gmx.net> on 2004/02/29 19:42:28 UTC

[PATCH] ./jk/native2/common/jk_worker_status.c - output non-caching headers

Hi,
here's a patch to put non-caching headers out; maybe an 'Expires' header is also needed..?

--- jk_worker_status.c.orig	Fri Feb 27 12:24:12 2004
+++ jk_worker_status.c	Sun Feb 29 19:30:24 2004
@@ -944,6 +944,10 @@
         s->headers_out->put(env, s->headers_out,
                             "Content-Type", "text/html", NULL);
     }
+    s->headers_out->put(env, s->headers_out,
+                        "Pragma", "no-cache", NULL);
+    s->headers_out->put(env, s->headers_out,
+                        "Cache-Control", "no-cache", NULL);
     s->head(env, s );
 
 	s->jkprintf(env, s, "<style>%s</style>\n", DEFAULT_CSS );

Guenter.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Re: [PATCH] ./jk/native2/common/jk_worker_status.c - output non-caching headers

Posted by Henri Gomez <hg...@apache.org>.
Guenter Knauf wrote:
> Hi,
> here's a patch to put non-caching headers out; maybe an 'Expires' header is also needed..?
> 
> --- jk_worker_status.c.orig	Fri Feb 27 12:24:12 2004
> +++ jk_worker_status.c	Sun Feb 29 19:30:24 2004
> @@ -944,6 +944,10 @@
>          s->headers_out->put(env, s->headers_out,
>                              "Content-Type", "text/html", NULL);
>      }
> +    s->headers_out->put(env, s->headers_out,
> +                        "Pragma", "no-cache", NULL);
> +    s->headers_out->put(env, s->headers_out,
> +                        "Cache-Control", "no-cache", NULL);
>      s->head(env, s );
>  
>  	s->jkprintf(env, s, "<style>%s</style>\n", DEFAULT_CSS );
> 

Commited, thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org