Deploy the Static Cache template
Deploy an application that caches static files by extension, with a cache TTL and a browser TTL you set on the template form.
The Static Cache template deploys an application that caches static files, such as JavaScript and CSS, by their file extension. Its rules are applied through Rules Engine, and they respect the cache settings the origin sends or apply a default TTL instead. The rules cover the GET, HEAD, and OPTIONS methods.
You link the template to your own origin, and the deployment creates an application on Azion Platform where every setting stays editable.
Requirements
- The template uses Application Accelerator and Functions, which can generate usage-related costs. For the rates, refer to Pricing.
- Access to Azion Console. Refer to Access Azion Console.
Deploy the template
Select the button below to open the template in Azion Console:
DeployWatch the deployment process:
Configure the template fields
The configuration form requests the information the application needs. An asterisk marks a mandatory field.
| Field | What to enter |
|---|---|
| Application Name * | The name of the application on Azion. It must be unique; a name already in use returns an error message. |
| Origin Address * | The address of the origin the application fetches content from. For example: www.yourwebsite.com. |
| Custom Host Header | The host information added to the request that retrieves content from the origin. For example: ${host}. For more information, refer to Host Header. |
| Static files extensions to cache * | The file extensions the static rules cover, separated by commas. Add as many as you need. For example: aif,aiff,au,avi,bin,cab,carb,cct,cdf,class,doc. |
| CDN Static Maximum TTL * | The maximum time in seconds that cached content is delivered. It accepts 0 to 31536000, and the default is 1296000. |
| Browser Static Maximum TTL * | The maximum time in seconds that content stays cached in the browser. It accepts 0 to 31536000, and the default is 0. |
Select Deploy in the lower-right corner to start the deployment. A window shows the logs while it runs, and the page then shows the application information and the options to continue.
Manage the template
Every setting the form asked for stays editable in Azion Console. To open the application:
Access Azion Console > Products Menu > Applications.
The list is alphabetical, and the search bar filters it by Application Name only.
Select the application to open its settings.
The application page carries the Cache Settings and Rules Engine tabs the template configured.