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

Fix automatic data refresh of remote source #5101

Open
wants to merge 6 commits into
base: beta-refactored
Choose a base branch
from

Conversation

noliveleger
Copy link
Contributor

@noliveleger noliveleger commented Sep 5, 2024

Description

When using pulldata feature in a project with a remote URL, data is now refreshed automatically.

Notes

To calculate the hash of a remote file, KPI and KoboCAT were using two different ways to achieve the goal.
It is now using the same utility which relies on remote server to expose specific headers (Etag, Last-Modified or Content-Length*) . If none of them are provided, a custom hash is built and cached (for a specific amount of time) to avoid too many hits on the remote server.

* Content-Length could be not accurate because two different files could have the same length.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants