Deploy the Applications Proxy template
Deploy an application in front of your origin that bypasses the cache and forwards cookies on one URL route, with the Applications Proxy template.
You can deploy the Applications Proxy template from Azion Console to bypass the cache on one URL route of your origin. The template places an application in front of the origin. It creates one rule in Rules Engine for Applications, and the rule stays editable after the deployment.
The rule’s criterion compares the ${uri} variable with the route you enter, such as /url_route, through the starts_with operator. A request that matches runs three behaviors:
- Set Connector sends the request to
Default Origin, the origin the template creates from the address you enter. - Bypass Cache keeps Azion from caching the origin’s response, so the application’s cache settings do not apply to the route.
- Forward Cookies sends the origin’s
Set-Cookieheader to the user.
Bypass Cache acts on Azion’s cache and not on the Tiered Cache layer. If a cache setting of the application turns on Tiered Cache, that layer still caches objects on the route for its minimum TTL. For more information, refer to Tiered Cache.
Prerequisites
- The address of your origin, the server the application fetches the original content from.
- Access to Azion Console. To sign in, refer to Access Azion Console.
Deploy the template
The Applications Proxy template deploys from a form in Azion Console, and the form marks each mandatory field with an asterisk. The application it creates uses Application Accelerator and Functions, which can generate usage-related costs. For the rates, refer to Pricing.
Open the template’s form in Azion Console:
DeployTo deploy the template from the form:
Enter a unique name for the application on Azion. A name already in use returns an error message.
Enter the address of the origin the application fetches the original content from, such as www.yourwebsite.com.
If your origin needs host information in the request header to return content, enter it, such as ${host}. For more information on the host header, refer to Origins.
Enter the URL route the bypass rule applies to, such as /url_route.
Submit the form. A window shows the deployment logs while the deployment runs.
When the deployment finishes, the page shows the application’s information and the options to continue. The configuration takes a few minutes to propagate across Azion’s distributed infrastructure. Until then, the link to the application can fail to show the page, so wait a few minutes and open it again.
This video walks through the deployment of the Applications Proxy template:
Open the bypass rule
The rule the Applications Proxy template creates stays editable in the Rules Engine tab of the application. There you can change its route or its behaviors.
To open the rule:
Access Azion Console > Applications. The page lists every application in the account in alphabetical order.
Enter the name you gave the application. The search filters the list by application name only.
The rule opens for editing, with the criterion and the three behaviors the template set. For every field of the criterion and the behaviors, refer to Rules Engine for Applications. For the settings of the application itself, refer to Main Settings. To build an application by hand, with a connector and a rule of your own, refer to Applications quickstart.