Commit ac199d52 authored by Geoff Simmons's avatar Geoff Simmons

Add to the list of common uses cases in the docs.

parent 44c93978
......@@ -70,6 +70,17 @@ typical for VCL deployments, such as:
* Generating redirect responses, based on a header or the URL.
* Permitting or rejecting request methods.
* Matching the Basic Authentication credentials in an Authorization
request header.
* Matching media types in the Content-Type header of a backend
response to determine if the content is compressible.
* Matching headers or URLs to conditionally execute code that depends
on features of the request or response.
Operations such as these are commonly implemented in native VCL with
an ``if-elsif-elsif`` sequence of string comparisons or regex matches.
As the number of matches increases, such a sequence becomes cumbersome
......
......@@ -66,6 +66,17 @@ typical for VCL deployments, such as:
* Generating redirect responses, based on a header or the URL.
* Permitting or rejecting request methods.
* Matching the Basic Authentication credentials in an Authorization
request header.
* Matching media types in the Content-Type header of a backend
response to determine if the content is compressible.
* Matching headers or URLs to conditionally execute code that depends
on features of the request or response.
Operations such as these are commonly implemented in native VCL with
an ``if-elsif-elsif`` sequence of string comparisons or regex matches.
As the number of matches increases, such a sequence becomes cumbersome
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment