# Change request path to /image/png to trigger this path
if (beresp.http.Content-Type ~ "^image/") {
  log "Detected image content, setting override TTL";
  set beresp.ttl = 67s;
  return (deliver);
}

# Change request path to /html to trigger this path
if (beresp.http.Content-Type ~ "^text/html") {
  log "Detected HTML content, setting override TTL";
  set beresp.ttl = 321s;
  return (deliver);
}

# Change requst path to /headers to trigger this path
if (beresp.http.Content-Type ~ "application/json") {
  log "Detected JSON content, setting override TTL";
  return(pass);
}