defaultLongLivedStaticFilesCacheControl constant

String const defaultLongLivedStaticFilesCacheControl

The default value for longLivedStaticFilesCacheControl:

  • private: Cached only by the browser.
  • max-age=86400: Fresh for 1 hour.
  • stale-while-revalidate=2592000: Serve stale content for up to 30 days while revalidating.
  • stale-if-error=2592000: Serve stale content for up to 30 days if there's a fetch error.

Implementation

static const String defaultLongLivedStaticFilesCacheControl =
    'private, max-age=3600, stale-while-revalidate=2592000, stale-if-error=2592000';