#1497 在代码仓上传一个删除后的同名ppt或pdf格式文档,其内容不会更新。

Closed
created 2 years ago by tanglj · 7 comments
tanglj commented 2 years ago
复现步骤: 1、在代码仓上传一个pptx或pdf文档,文档名称为:abc.pptx。 2、在本地将文档内容更新,保持文档名称abc.pptx不变。 3、在代码仓上删除abc.pptx文档。 4、在代码仓重新上传更新后的abc.pptx文档。 5、在代码仓查看abc.pptx文档,应该是第二次上传的文档,但实际显示第一次上传的文档。
tanglj added the
bug
label 2 years ago
wangj commented 2 years ago
Owner
pdf可以复现。临时解决办法:清空浏览器缓存,重新查看。
wangj commented 2 years ago
Owner
文本文件,不存在该问题。
tanglj commented 2 years ago
Poster
excel文件,不存在该问题。
lewis commented 2 years ago
Owner
> pdf可以复现。临时解决办法:清空浏览器缓存,重新查看。 此bug是浏览器缓存导致。 当浏览pdf文件时,前端会向后台发请求下载此文件,当已经下载过同名文件时,浏览器直接返回了缓存中的文件,导致打开的文件还是原来的。 可以设置此请求不使用浏览器缓存。
lewis added this to the V20220228 milestone 2 years ago
lewis self-assigned this 2 years ago
lewis commented 2 years ago
Owner
https://www.cnblogs.com/web-learn/p/15208864.html 采取http信息头设置Cache-Control:max-age=0的方式来解决。
lewis commented 2 years ago
Owner
已解决,可测试。
wangj was assigned by lewis 2 years ago
wangj commented 2 years ago
Owner
通过测试,关闭此单。
wangj closed this issue 2 years ago
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.