Reload Document into Google Docs Viewer (Clear Cache)
-
15-04-2021 - |
Question
Google Docs Viewer (http://docs.google.com/viewer) creates a cache of a document after the first viewing. To see what I mean, try the following:
- Upload
file.pdf
to your server (i.e., http://example.com). - Visit http://docs.google.com/viewer?url=http://example.com/file.pdf
- Upload a new file to replace
file.pdf
(but use the same name). - Revisit http://docs.google.com/viewer?url=http://example.com/file.pdf.
Google Docs Viewer still shows the old file.pdf
.
Anyone know how to correct this?
(I have already tried clearing browser cache, switching browsers, and logging in with a different google account to view the link.)
Solution
It appears there is no way to clear the cache. Although, from my experience, Google tends to do it automatically about once a day.
OTHER TIPS
Maybe if you append a dynamic query string parameter to filename maybe cache will not work.
ex: http://docs.google.com/viewer?url=http://example.com/file.pdf?time=3454354
I added ?time=0
Seemed to work.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow