Deploy the Image Optimization template
Deploy the Image Optimization template to configure image caching by file extension, through Application Accelerator and Functions.
You can deploy the Image Optimization template from Azion Console to enhance image loading and caching by file extension. The template applies advanced cache key rules through Rules Engine for Applications, for the extensions .jpg, .jpeg, .bmp, .ico, .gif, .png.
Prerequisites
- Application Accelerator, which the template uses.
- Functions, which the template uses.
For what each one counts against, refer to Pricing.
Deploy the template
You obtain and configure the template through Azion Console.
To open the template configuration:
DeployThe template configuration form opens in Azion Console.
Watch the deployment process:
Configure the template fields
The configuration form requests the information to configure your application. An asterisk marks a mandatory field.
- Application Name *: the name of your application on Azion.
- Use a unique, memorable name. If the name is already in use, the platform returns an error message.
- Origin Address *: the address of the hosted origin the application fetches the original content from.
- Example:
www.yourwebsite.com
- Example:
- Custom Host Header: adds host information to the request header the application sends to the origin.
- Example:
${host}. For more information, refer to Origins.
- Example:
- Image file extensions to cache *: the file extensions for the rules, separated by a comma. Add as many extensions as you need, following the example.
- Example:
jpg,jpeg,bmp,ico,gif,png
- Example:
- CDN Static Maximum TTL *: the maximum TTL, in seconds, for cached content to be delivered.
- Accepts values from
0to31536000. Default:31536000.
- Accepts values from
- Browser Image Maximum TTL *: the maximum TTL, in seconds, for cached content in the browser.
- Accepts values from
0to31536000. Default:0.
- Accepts values from
After you complete the form, select Deploy to start the deployment.
A window shows the deployment logs while it runs. When it completes, the page shows information about the application and options to continue.
The deployment creates an application that runs on Azion Platform, where you can manage and adjust the settings.
Manage the application afterwards
You can customize any setting at any time from Azion Console.
To manage the application’s settings:
Access Azion Console > Applications. The page lists every application you created.
Find the application for the Image Optimization template and select it. The list is alphabetical, and the search bar filters by Application Name only.
The application opens to a page with every setting you can configure.
Next steps
- Image Processor quickstart - turn on image transformations manually, with cache rules you control.
- Cache Settings - review every field a cache setting carries, including the TTLs this template sets.