-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Bug]: [package_info_plus] Web: Version info returns next version in server #2675
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
Comments
This is definitely not documented, but the plugin works by obtaining the information from the |
When looking at the code then cache is deliberately being avoided |
The source of the problem I think is the nature of the web implementation, that is dependent of an external resource that needs to be loaded with a fetch request ( You can remove the buster cache, but then you will depend of the browser cache invalidation. Your And this only thinking in the browser cache invalidation, but it could be other cache layers, like for example an AWS CloudFront cache invalidation layer, or others. It is a complicated situation, to be honest. We could add a new parameter to opt out the cache buster. Maybe that could mitigate the issue, but in my view, it will be there yet, just happening sometimes, instead always. Or, we could implement a solution no dependent of the Of course, this is just a theoretical solution and I don't know if it could be implemented even. |
I'll suggest you could collect the version mentioned in the You may need to implement it with a builder like This may solve the problem mentioned above also, on how to inform the user that there is an updated version of the (web)app, and you need to refresh it (done programmatically or by Ctrl+F5) |
Maybe here are some hints on collecting the https://stackoverflow.com/questions/23613279/access-to-pubspec-yaml-attributes-version-from-dart-app |
I made a suggestion to the flutter team, maybe they hear us... |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days |
Keep open. |
Discussed in flutter/flutter#149031 Personally I think that appending the |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days |
Platform
Web
Plugin
package_info_plus
Version
5.0.1
Flutter SDK
3.19.2
Steps to reproduce
Code Sample
No response
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: