Load balance to optimise upstream caching with hash directors

Map requests to backends consistently, which can be useful to improve your internal cache and replication efficiency.

VCL

Use this solution in your VCL service (click RUN below to test this solution or clone it to make changes):

Compute@Edge

Use this solution in your Compute@Edge service:

  1. JavaScript
  2. Rust