Skip to content

Instantly share code, notes, and snippets.

@mshmsh5000
Created September 28, 2016 15:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mshmsh5000/9b7c6c308397563118b8c5889b1f75bc to your computer and use it in GitHub Desktop.
Save mshmsh5000/9b7c6c308397563118b8c5889b1f75bc to your computer and use it in GitHub Desktop.
Fastly VCL for X-Request-ID header
# 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