defaultStaticFilesCacheControl constant

String const defaultStaticFilesCacheControl

The default value for staticFilesCacheControl:

  • private: Cached only by the browser, not shared caches (e.g., CDN).
  • no-transform: Prevents proxies from modifying the response.
  • max-age=60: Fresh for 60 seconds.
  • stale-while-revalidate=600: Serve stale content for up to 10 minutes while revalidating.
  • stale-if-error=1200: Serve stale content for up to 20 minutes if there's a fetch error.

Implementation

static const String defaultStaticFilesCacheControl =
    'private, no-transform, max-age=60, stale-while-revalidate=600, stale-if-error=1200';