Origin Base Path

With this behavior enabled, you can specify a directory path to be appended to requests for your origin.


If you change the origin’s base path, you’ll affect an existing cache key. Until the cache is resolved to sync with the new path, you may see a traffic spike at your origin server.

How it works

Let's assume that your origin is example.com. If you set the Origin Base Path behavior to /images/, your base path is updated to example.com/images/. Any request for a my_pics/home.jpg file resolves on the origin server to example.com/images/my_pics/home.jpg. The property configuration routes it to example.com/images/my_pics/home.jpg.


You can't override the base path with other behaviors. For example, if in the Modify Outgoing Request Path behavior you set the Replace the entire path field to /gifs/hello.gif, this gets appended to the base path: example.com/images/gifs/hello.gif.

Features and options

FieldWhat it does
ValueSpecify the base path of content on your origin server. The value must begin and end with a slash / character, for example /parent/child/. You can use variables in this field.