getExpires method
Returns the duration for the Expires and max-age headers.
- If null is returned, the Expires and max-age headers won't be generated.
- Default: 30 days if
useExpres
is true. - You can override this method if necessary.
Implementation
Duration? getExpires(Asset asset) => useExpires ? const Duration(days: 30): null;