将文档重新加载到 Google 文档查看器(清除缓存)

发布于 2024-09-04 19:05:35 字数 823 浏览 1 评论 0原文

Google 文档查看器 (http://docs.google.com/viewer) 创建文档缓存第一次观看后。要明白我的意思,请尝试以下操作:

  1. file.pdf 上传到您的服务器(即 http:// /example.com)。
  2. 访问 http://docs.google.com/viewer ?url=http://example.com/file.pdf
  3. 上传一个新文件来替换 file.pdf(但使用相同的名称)。
  4. 重新访问 http://docs.google.com/viewer ?url=http://example.com/file.pdf

Google 文档查看器仍然显示旧的 file.pdf

有人知道如何纠正这个问题吗?

(我已经尝试过清除浏览器缓存、切换浏览器以及使用不同的谷歌帐户登录来查看链接。)

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

┈┾☆殇 2024-09-11 19:05:35

看来没有办法清除缓存。不过,根据我的经验,谷歌倾向于每天自动执行一次。

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

一生独一 2024-09-11 19:05:35

如果您将动态查询字符串参数附加到文件名,也许缓存将不起作用。

例如:http://docs.google .com/viewer?url=http://example.com/file.pdf?time=3454354

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

∞觅青森が 2024-09-11 19:05:35

我添加了 ?time=0

似乎有效。

I added ?time=0

Seemed to work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文