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:

  1. Upload file.pdf to your server (i.e., http://example.com).
  2. Visit http://docs.google.com/viewer?url=http://example.com/file.pdf
  3. Upload a new file to replace file.pdf (but use the same name).
  4. 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.)

Was it helpful?

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
scroll top