Overriding caching defaults based on a backend response

Conditionally apply a 5 minute caching limit based on a 404 backend response.

VCL

Use this solution in your VCL service (click RUN below to test this solution or clone it to make changes):