http_client_cache 1.0.2 copy "http_client_cache: ^1.0.2" to clipboard
http_client_cache: ^1.0.2 copied to clipboard

Dart package that seamlessly adds HTTP traffic caching to improve performance and reduce network load in Dart and Flutter applications.

1.0.2 #

Improvements #

  • 📝 Enhanced Logger Messages: Made all cache logging messages consistent, developer-friendly, and informative
  • 🔗 Added Request URLs: All logger messages now include the request URL for better debugging context
  • 🎯 Consistent Message Style: Unified tone and format across all cache-related log messages

Logger Message Examples #

  • Cache hit for https://api.example.com/data
  • Cache miss for https://api.example.com/data
  • Cache entry expired for https://api.example.com/data
  • Skipping cache for private response: https://api.example.com/data
  • Skipping cache due to no-store directive: https://api.example.com/data
  • Skipping cache due to Vary: * header: https://api.example.com/data

Technical Improvements #

  • 🛠️ Better Debugging Experience: Easier to track cache behavior per URL
  • 📊 Improved Error Context: Cache write failures now include request URLs
  • 🎨 Cleaner Message Format: Removed redundant text and improved readability

1.0.1 #

  • add noCache and noStore boolean parameters to CacheControl factory constructors to preserve important cache directives when transforming response headers
  • update libs and protobuf Dart files

1.0.0 #

  • Initial version.
2
likes
0
points
534
downloads

Publisher

verified publisherdasralph.de

Weekly Downloads

Dart package that seamlessly adds HTTP traffic caching to improve performance and reduce network load in Dart and Flutter applications.

Repository (GitHub)
View/report issues

Topics

#http #network #cache

License

unknown (license)

Dependencies

async, collection, file, fixnum, http, http_client_interceptor, http_client_logger, logging, meta, protobuf, uuid

More

Packages that depend on http_client_cache