Unable to View Most Recent Version of PDF File in App

I am experiencing a problem where I am unable to view the most recent version of a PDF file through my app. My bot generates the PDF file, and whenever I make changes to the table, the bot updates the old file with the new one in a specified Google Drive location. However, the file's ID remains the same, so I can view both the current and older versions of the PDF by using the "manage versions" feature in Google Drive. But sometimes, when I try to access the most recent version of the file through my app, it displays an older version instead. Has anyone else encountered this issue before?

Solved Solved
0 6 191
1 ACCEPTED SOLUTION

The information in and linked from Open a file action - get current (not cached) file may help you sort it out.

View solution in original post

6 REPLIES 6

Here is a capture from my app.

RPReplay_Final1671305240.GIF

 

I am facing the same problem in app its always old file version and in google drive New file Version only after refresh.

The information in and linked from Open a file action - get current (not cached) file may help you sort it out.

Hello dbaum, thank you so much for providing this information! I had been trying many different things and searched extensively. Now I am banging my head against the wall, because how could I not think about the look for the term "cache" which ended up being the key to solving my issue. Your suggestion was extremely helpful and I appreciate it.

@dbaum 

Regardless of this issue, I am trying to create a link that allows someone to download a PDF file from outside of the app, and I am using the file's ID from the folder table to create a QR code for the link. However, when the link is clicked or the QR code is scanned, it is bringing up a cached version of the file instead of the current version. Sometimes it works for the first scan.. Sometimes I need to scan a second time.

Do you have any suggestions about this?

Thank you.

Not necessarily. As in the tip I shared, you could try including a dummy parameter in the URL represented by the QR code.

If you share more about the process for generating the URL, generating the QR code, and scanning the QR code, someone might have further suggestions.

Top Labels in this Space