defaultLongLivedStaticFilesCached constant

List<Pattern> const defaultLongLivedStaticFilesCached

Default list of patterns for files that should use defaultLongLivedStaticFilesCacheControl.

Optimized for PWA setups where the API server delivers both API responses and static assets required for application startup.

These files are either:

  • Infrequently updated and suitable for long-lived caching.
  • Critical for the offline bootstrap of PWA apps, before the Service Worker takes control and can serve cached content.

Examples:

  • '/': PWA entry point.
  • '/index.html': Main HTML shell.
  • '/pwa_sw.js': Service Worker script.

Implementation

static const List<Pattern> defaultLongLivedStaticFilesCached = [
  '/',
  '/index.html',
  '/styles.css',
  '/pwa_sw.js',
];