DOCUMENT_VIEWER property

CacheModel DOCUMENT_VIEWER
final

Disable the cache completely, which is useful for ephemeral applications or applications without a persistent data storage. Using this cache model can have important security implications for your application. All pages are loaded from the server without caching.

Officially Supported Platforms/Implementations:

Implementation

static final DOCUMENT_VIEWER = CacheModel._internalMultiPlatform(0, () {
  switch (defaultTargetPlatform) {
    case TargetPlatform.linux:
      return 0;
    default:
      break;
  }
  return null;
});