req.digest.ratio
FLOAT, read-only.
Available inpassmisshitfetchdelivererrorlog
A floating point number between 0 and 1 derived from the object digest.
Use this variable in an if
conditional compared to a constant floating point
number between 0 and 1 (inclusive) if you need to apply some special handling
only to a chosen percentage of all your objects. Keep in mind that the
digest is not yet known in vcl_recv
because it is computed only after
vcl_hash
returns.
The variable was introduced for selecting among directors in vcl_miss
.
User contributed notes
BETADo you see an error in this page? Do have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact support@fastly.com)