Difficulty level: Medium
In this challenge, a Fastly service is receiving a HEAD
request followed by a GET
request, for the same URL. By default in VCL services, Fastly transforms HEAD
requests into GET
requests, so that the entire object being requested is loaded into our edge cache. However, you may want HEAD
requests from clients to be passed to origin as HEAD
.
This is a companion discussion topic for the original entry at https://developer.fastly.com/learning/challenges/request-method-head