From 0a9a94e90b556e66c1e9ab23c419200977e09270 Mon Sep 17 00:00:00 2001 From: Fabian Keil <fk@fabiankeil.de> Date: Thu, 25 Oct 2018 15:13:52 +0200 Subject: [PATCH] Document delay-response{} --- doc/source/user-manual.sgml | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/doc/source/user-manual.sgml b/doc/source/user-manual.sgml index b6f663ea..a227801a 100644 --- a/doc/source/user-manual.sgml +++ b/doc/source/user-manual.sgml @@ -3659,6 +3659,76 @@ new action </variablelist> </sect3> + +<!-- ~~~~~ New section ~~~~~ --> +<sect3 renderas="sect4" id="delay-response"> +<title>delay-response</title> + +<variablelist> + <varlistentry> + <term>Typical use:</term> + <listitem> + <para>Delay responses to the client to reduce the load</para> + </listitem> + </varlistentry> + + <varlistentry> + <term>Effect:</term> + <listitem> + <para> + Delays responses to the client by sending the response in ca. 10 byte chunks. + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term>Type:</term> + <!-- boolean, parameterized, Multi-value --> + <listitem> + <para>Parameterized.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term>Parameter:</term> + <listitem> + <para> + <quote>Number of milliseconds</quote> + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term>Notes:</term> + <listitem> + <para> + Sometimes when JavaScript code is used to fetch advertisements + it doesn't respect Privoxy's blocks and retries to fetch the + same resource again causing unnecessary load on the client. + </para> + <para> + This action delays responses to the client and can be combined + with <literal><link linkend="block">blocks</link></literal> + to slow down the JavaScript code, thus reducing + the load on the client. + </para> + <para> + When used without <literal><link linkend="block">blocks</link></literal> + the action can also be used to simulate a slow internet connection. + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term>Example usage:</term> + <listitem> + <screen>+delay-response{100}</screen> + </listitem> + </varlistentry> +</variablelist> +</sect3> + + <!-- ~~~~~ New section ~~~~~ --> <sect3 renderas="sect4" id="downgrade-http-version"> <title>downgrade-http-version</title> -- 2.49.0