STRING, read-only.

Available inall subroutines.

The file name specified in a URL. This will be the last component of the path, from the last / to the end, not including the query string.


In the request, req.url.basename will contain hello.gif.

User contributed notes


Do you see an error in this page? Do you have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact Fastly support)