Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1. Click on "Offline Support".

Image Modified

2. Double click on "None".

Image AddedImage Removed

3. The details tab displays a dropdown with available options. Select one of them.

Image RemovedImage Added

The Application Cache provides you with the following options:

...

4. Once you select an option, the following view is displayed:

Image Modified


5. Right-click "Web App Manifest/Service Worker" to see a context menu with additional options.

6. Select "Add Service Worker Cache" to start nominating objects and resources that will be placed in the cache storage.

Image Modified


7. After you select the "Add Service Worker Cache", the Details tab displays the following:

Image RemovedImage Added


Fill in the details as follows:

  • Name - Choose a name for the cache storage. This name will be accessible in the browser under developer tools.
  • Description - Include details for the cache storage you are creating.
  • Strategy - You can select from the following:

Image Modified

Cache First

...

Uses the Cache First strategy by default.

  • Position - Set your cache storage position.

8. Once you set the Details, click "Add" or right click to bring up the context menu on the name of the cache storage bucket, and select "Add Service Worker Cache Resource".

Refer to the image below as an example where the 'Contacts' is the storage bucket:

Image Modified


9. The "Add Service Worker Cache Resource" option allows you to specify the identifier of a specific resource.

Image RemovedImage Added


The Precache Manifest ensures that the resource is placed within the cache storage on the first load of the application.

Refer to the image below as an example where 'A03Contacts' is the identifier for the 'Contacts' storage bucket view.

Image Modified

Note
Note: As you type the resource name in the identifier, LANSA searches simultaneously for the resource you need.

If you do not know the specific identifier, you can drag a resource from the repository view to the specified Cache bucket name.