hotwired / hotwire-native-ios

Hotwire Native for iOS
MIT License
73 stars 7 forks source link

Map URL to cached data #23

Closed olivaresf closed 1 month ago

olivaresf commented 1 month ago

Turbo iOS PR: https://github.com/hotwired/turbo-ios/pull/215

Adds new caching behavior for path config.

Previously, we'd cache the last successfully downloaded version of a path config. This causes an issue when a user updates versions (e.g. path-config-v6.json to path-config-v7.json). Instead of saving the last successfully downloaded version, we now use the path's last component (i.e. the filename) for cache purposes.