Table of contents
Origin Path Prepends
The Origin Path Prepends script config enables you to configure the CacheFly content distribution network (CDN) to automatically prepend a predefined text string to the start of the request path whenever a request matches a specific path. This adjustment is made dynamically and can be used to direct traffic more effectively or manage resources efficiently.
To add an Origin Path Prepends script config to the list of script configs created for your CacheFly services in general, or to associate an Origin Path Prepends script config with a specific CacheFly service, see Adding and Using Script Configs.
Using the Origin Path Prepends Script Config
If a user sees the path to an asset as, for example, /some/url/path/item.jpg
and you define a prepend path of /prepend/path/
, the asset will then be retrieved for the user as the asset located at /prepend/path/some/url/path/item.jpg
.
Editing the Origin Path Prepends Script Config
When you add the Origin Path Prepends script config to your list of script configs in CacheFly, it will initially display a default configuration as a model for you to adapt to your own requirements.
To edit this default configuration:
Click the blue Edit button to enter edit mode
Modify the script config as you require
Remember to click the blue ✔ Save Changes button to save your changes.
As you edit:
The CacheFly system shows on-screen prompts to help you select acceptable parameters and values.
You can cancel your current edits by clicking the gray Cancel button.
Scroll the graphics in this step horizontally to see all the screens.
Additional Help Topics
As an alternative to creating and managing script configs via the CacheFly user interface as described in this guide, you can also create and manage script configs via API calls.
Click the gray API docs button to access the Script Configs section in CacheFly's online API documentation for further information.