Created
September 28, 2016 15:29
-
-
Save mshmsh5000/9b7c6c308397563118b8c5889b1f75bc 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