-
-
Save AimeeKnight/77a3ce544faf201d496ee010049e37ac to your computer and use it in GitHub Desktop.
Fastly VCL for X-Request-ID header
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Unique request ID header | |
sub vcl_recv { | |
set req.http.X-Request-ID = digest.hash_sha256(now randomstr(64) req.http.host req.url req.http.Fastly-Client-IP server.identity); | |
#FASTLY recv | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment