cvs: peardoc /en/package/http/http-download setcachecontrol.xml

From: Date: Tue, 19 Jul 2005 08:24:14 +0000
Subject: cvs: peardoc /en/package/http/http-download setcachecontrol.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6525@lists.php.net to get a copy of this message
mike Tue Jul 19 04:24:14 2005 EDT Modified files: /peardoc/en/package/http/http-download setcachecontrol.xml Log: - add maxage parameter http://cvs.php.net/diff.php/peardoc/en/package/http/http-download/setcachecontrol.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/package/http/http-download/setcachecontrol.xml diff -u peardoc/en/package/http/http-download/setcachecontrol.xml:1.1 peardoc/en/package/http/http-download/setcachecontrol.xml:1.2 --- peardoc/en/package/http/http-download/setcachecontrol.xml:1.1 Fri Jun 10 07:08:49 2005 +++ peardoc/en/package/http/http-download/setcachecontrol.xml Tue Jul 19 04:24:09 2005 @@ -1,9 +1,9 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.http.http-download.setcachecontrol"> <refnamediv> <refname><function>HTTP_Download::setCacheControl</function></refname> <refpurpose> - Whether to allow proxies to cache. + Control cache privacy and validity. </refpurpose> </refnamediv> <refsynopsisdiv> @@ -19,6 +19,12 @@ <optional>$cache = &quot;public&quot;</optional> </parameter> </paramdef> + <paramdef> + int + <parameter> + <optional>$maxage = 0</optional> + </parameter> + </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -32,6 +38,11 @@ If set to set to &quot;public&quot;, proxies are adviced to cache the response, if set to &quot;private&quot;, proxies are adviced to do not. </para> + <para> + The maxage paramter controls the amount of seconds an entity is suggested + to be cached. Many user agents won't even send a request for subsequent + requests to the same resource within the specified time frame. + </para> </refsect1> <refsect1 id="package.http.http-download.setcachecontrol.parameter"> @@ -47,6 +58,15 @@ - whether to allow proxy caching </para> </listitem> + <listitem> + <para> + int + <parameter> + <optional>$maxage = 0</optional> + </parameter> + - maximum age of the cached entity + </para> + </listitem> </itemizedlist> </para> </refsect1>

« previous php.pear.doc (#6525) next »