Asset Caching
How It Works
Default Configuration
pwa:
serviceworker:
workbox:
asset_cache:
enabled: true # Enable asset caching
regex: '/\.(css|js|json|xml|txt|map|ico|png|jpe?g|gif|svg|webp|bmp)$/' # Default pattern
cache_name: null # Auto-generated: 'asset-cache'
max_age: null # Default: 1 year (31536000 seconds)
max_entries: 60 # Maximum number of cached assetsConfiguration Options
enabled
regex
cache_name
max_age
max_entries
Integration with AssetMapper
What Gets Cached
Asset Versioning
Public Path Resolution
Caching Strategy
Complete Examples
Minimal Configuration
CSS and JavaScript Only
Large Application
Separate Image Cache
Precaching Behavior
Installation Process
Impact on Install Time
Debugging Asset Cache
View Cached Assets
Check What Will Be Cached
Common Issues
Asset Cache vs Image Cache
Feature
Asset Cache
Image Cache
Best Practices
Troubleshooting
Related Documentation
Last updated
Was this helpful?