# Don't let clients set this header, or they could force a request
# to go to origin.
if (req.restarts == 0) {
  unset req.http.Cache429Only;
}

# /status because that's something the origin for this fiddle
# does. Should be replaced with a regex that matches the proper
# URLs that need just the 429 cached.
if (req.url ~ "^/status") {
  
  # Set a header so we don't have to duplicate the regex in other parts
  set req.http.Cache429Only = "1"; # value doesn't matter, just presence
  
  # Disable request collapsing
  set req.hash_ignore_busy = true;
  
  # Force cache lookup
  return(lookup);
}