Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reload Document into Google Docs Viewer (Clear Cache)

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.)

like image 351
Adam Avatar asked Jun 15 '26 16:06

Adam


2 Answers

It appears there is no way to clear the cache. Although, from my experience, Google tends to do it automatically about once a day.

like image 111
Adam Avatar answered Jun 21 '26 12:06

Adam


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

like image 45
Seyyah Avatar answered Jun 21 '26 13:06

Seyyah