website
website copied to clipboard
Explain how to handle browser caching for Flutter web apps
What information is missing?
Hi,
I'm using AWS as my server / deployment for a web-app I'm working on.
I have managed to deploy my web-app a number of times. However for some reason every now and then a deployment never appears / goes live against the url, despite clearing cache & cookies.
Some info on how to ensure every build and deployment is a success when not using Firebase, Github Pages and Google Cloud would be great, to ensure this issue doesn't happen.
How would you like us to fix this problem?
Some info on how to ensure every build and deployment is a success when not using Firebase, Github Pages and Google Cloud would be great.
Hi @RedHappyLlama, I'm not entirely sure what we can do here. Do you have this same issue when you use other hosting sites or is this issue only on AWS?
Hi,
I've managed to find https://medium.com/flutter-community/caching-in-flutter-for-web-42b3ae0e348f which is likely to help my issue. Could something similar be added to https://docs.flutter.dev/deployment/web ?
Apologies if this may be obvious to most, I am new to dev, particularly to web-dev.
Thanks
I think I understand your issue now. There's a request on the main flutter repo to "relax" the caching of a flutter web app. The issue is here https://github.com/flutter/flutter/issues/63500.
It contains some workarounds so I believe adding the link to that issue on the deployment page should suffice for now.