binSaed / flutter_cached_pdfview

Enhanced PDF view for Flutter.
https://pub.dev/packages/flutter_cached_pdfview
MIT License
121 stars 70 forks source link

Re-download the PDF file everytime #74

Open noorbakerally opened 2 years ago

noorbakerally commented 2 years ago

I am using PDF().fromUrl instead of PDF().cachedFromUrl, and expecting that PDF().fromUrl will never cache the file. I want to download the file everytime because the PDF is constantly changing on the server. How to force PDF().fromUrl to re-download the file everytime.

myselfuser1 commented 1 year ago

This will help https://www.youtube.com/watch?v=gAUVz0U7eyA

sawirricardo commented 1 year ago

just add the PDF().cachedFromUrl('$url?dontcache='+DateTime.now().toString());