How to load updated WebViewer files without clearing cache?

Change the actual file location of WebViewer's lib folder for each version.

Example: If WebViewer version 5.2.8 was used:

  1. Create a new folder
  2. put the WebViewer files in that folder
  3. then change the syntax to be something along the lines of:

JavaScript

1WebViewer({
2 path: '5.2.8/lib'
3})

Example: If upgrading to WebViewer 6.0 then follow similiar instructions to above:

JavaScript

1WebViewer({
2 path: '6.0/lib'
3})

Optional Step:

Modify the main html page of the app such that it won't have the caching headers from the server set for too long.

When the version is updated, the HTML page will be updated to point to a new WebViewer path which isn't cached by the users.

Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales