---
title: req.topurl
summary: null
url: https://www.fastly.com/documentation/reference/vcl/variables/esi/req-topurl
---

**Type:** STRING  
**Access:** read-only

**Available in:** all subroutines

In an ESI subrequest, contains the URL of the top-level request that ESI 
processing was enabled on. If the request is not an ESI,
`req.topurl` will be a _not set_ string value.
