ad_http_cache_control (private)

 ad_http_cache_control

Defined in packages/acs-tcl/tcl/request-processor-procs.tcl

This adds specific headers to the http output headers for the current request in order to prevent user agents and proxies from caching the page.

It should be called only when the method to return the data to the client is going to be ns_return. In other cases, e.g. ns_returnfile, one can assume that the returned content is not dynamic and can in fact be cached. Besides that, AOLserver implements its own handling of Last-Modified headers with ns_returnfile. Also it should be called as late as possible - shortly before ns_return, so that other code has the chance to set no_cache_control_p to 1 before it runs.

This proc can be disabled per request by calling "ad_conn -set no_http_cache_control_p 1" before this proc is reached. It will not modify any headers if this variable is set to 1.

If the acs-kernel parameter CacheControlP is set to 0 then it's fully disabled.

Author:
Tilmann Singer <tils-oacs@tils.net>

Partial Call Graph (max 5 caller/called nodes):
%3 ad_progress_bar_begin ad_progress_bar_begin (public) ad_http_cache_control ad_http_cache_control ad_progress_bar_begin->ad_http_cache_control doc_return doc_return (public) doc_return->ad_http_cache_control ad_conn ad_conn (public) ad_http_cache_control->ad_conn parameter::get parameter::get (public) ad_http_cache_control->parameter::get

Testcases:
No testcase defined.
[ show source ]
Show another procedure: