Configuring JavaScript Streaming in the Portal

Note

If you have the V2 config framework, this document is superseded by Configuring JavaScript Streaming with the Performance & Delivery Rule Builder.

There are two sections to this screen: JavaScript Streaming Configuration, which is for JavaScript Streaming settings for the entire property, and Exceptions, which is for overriding some of the JavaScript Streaming settings in specific domains and/or in specific paths in domains.

JavaScript Streaming configuration screen

What JavaScript Streaming does and how it works is described in this document.

JavaScript Streaming Configuration

To the right of the label Advanced JS Streaming Settings is a pair of radio buttons that allow you to turn JavaScript Streaming ON or OFF by default for the entire property.

Exceptions

Under Exceptions are displayed Property Exceptions , followed by Domain and Path Exceptions (if any).

Exceptions at the property level allows you to create some very specific actions that depend on conditions other than in which domain and path, using expressions to test for those conditions; when the expressions match, the action is taken. The current release of the Portal does not support editing of domains and paths that include such rules. Please contact Support if you want to have further control over caching settings than currently allowed by the Portal.

The Domain and Path Exceptions section displays a list of any exceptions that have already been defined (if any). By default it displays domain exception only; to see any property exceptions within a domain, click the right arrow icon to expand it:

 

Creating a new exception

To create a new exception, click the Add New Exception button. This will open a Create Exception screen:

Create a new JavaScript Streaming exception step 1

In step 1, you choose an existing domain. You can also choose an existing path pattern from the pulldown, or enter a new one in the Edit Patterns field to the right, then click the Add Path button beneath the field to add it. You can repeat this action for as many paths as you need to have in this exception.

When ready, click the Next: Create Exceptions button. This takes you to step 2, where you can turn JavaScript Streaming on or off for scripts in this path. (The choices are the same as described above for overall settings at the property level.) You can also go back to step 1 if needed by clicking Edit Domain/Path (Cancel will cancel the entire exception creation process, not the current step).

Create a new JavaScript Streaming exception step 2

When ready, click Next: Review Exception. This takes you to step 3, where you can check that everything is as desired. If so, click Create Exception:

Create a new JavaScript Streaming exception step 3

The portal will acknowledge that your configuration update request has been submitted by displaying a temporary message like this near the top of the window:

Message from system when a JavaScript Streaming config change has been submitted

At the same time, the Running Tasks icon displays a number (this is the number of tasks currently running). If you hover the mouse pointer over the icon, a task message will be displayed:

Task list displayed when you click on the Tasks icon, showing a JavaScript Streaming configuration change is pending completion

Editing an existing exception

To edit a domain exception, click on the Edit button to the right.

To edit a path exception within a specific domain, first click on the expand button icon at the left of the domain. This displays all the paths within this domain and any exceptions that currently exist. Then choose the path you want to edit and click the Edit button to its right.

This will open a form to edit the exception:

Editing an existing JavaScript Streaming exception step 1

In step 1, you choose an existing domain. You can also choose an existing path pattern from the pulldown, or enter a new one in the Edit Patterns field to the right, then click the Add Path button beneath the field to add it. You can repeat this action for as many paths as you need to have in this exception.

When ready, click the Next: Create Exceptions button. This takes you to step 2, where you can turn SmartVision on or off, set the Profile, and select Advanced Image Formats settings for images in this path. (The choices are the same as described above for overall settings at the property level.) You can also go back to step 1 if needed by clicking Edit Exception (Cancel will cancel the entire exception creation process, not the current step).

Editing an existing JavaScript Streaming exception step 2

When ready, click Next: Review Exception. This takes you to step 3, where you can check that everything is as desired. If so, click Create Exception.

Editing an existing JavaScript Streaming exception step 3

As with adding a new rule, the portal will acknowledge that your configuration update request has been submitted by displaying a temporary message near the top of the window and the Running Tasks icon displays a number (this is the number of tasks currently running). If you hover the mouse pointer over the icon, a task message will be displayed to the effect that the configuration is being updated.

Deleting an existing exception

To delete a path exception, click on the red Delete button to the right:

Deleting an existing JavaScript Streaming configuration exception