Some test text!

menu
Load updated WebViewer files without clearing cachekeyboard_arrow_down

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:
WebViewer({
  path: '5.2.8/lib'
})

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

WebViewer({
  path: '6.0/lib'
})

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

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

Join our live demo to learn about use cases & capabilities for WebViewer

Learn more
close