Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache based on url #215

Merged
merged 4 commits into from
Jun 4, 2024
Merged

Cache based on url #215

merged 4 commits into from
Jun 4, 2024

Conversation

olivaresf
Copy link
Member

@olivaresf olivaresf commented May 30, 2024

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.

@olivaresf olivaresf requested a review from svara May 30, 2024 03:15
@olivaresf olivaresf marked this pull request as draft May 30, 2024 03:15
Copy link
Contributor

@svara svara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice improvement @olivaresf!
I've left one comment.

Source/Path Configuration/PathConfigurationLoader.swift Outdated Show resolved Hide resolved
@olivaresf olivaresf marked this pull request as ready for review June 4, 2024 16:46
@olivaresf olivaresf merged commit 97d0219 into turbo-navigator Jun 4, 2024
1 check passed
@olivaresf olivaresf deleted the cache-based-on-url branch June 4, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants