Closed Bug 334958 Opened 20 years ago Closed 18 years ago

Download manager caching old version of file, after file has been updated uses old version of file

Categories

(Toolkit :: Downloads API, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: mailing_lists, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 A Word document is located on our company Intranet. When the link to the file is clicked on it opens in Word. What we're finding is that when the Word file is updated, Firefox doesn't open the new version. It seems to use the cached version in the temp directory and make a new copy of it in the temp directory, appending a number to the file name. The only way to stop this from happening is to close Firefox down completely and restart. Reproducible: Always Steps to Reproduce: 1. Click link to Word Document, use Open With to open in Word. 2. Alter the Word Document and save it with the same file name. 3. Click link to Word Document, use Open With to open in Word. Actual Results: The old version of the Word document is opened instead of the new version. Expected Results: It should have opened the updated Word document instead of the the cached older version.
Confirmed by a regular user: I had almost the identical problem, except the file was on the internet instead of an intranet. I think the server is unlikely to be the problem, because IE 7 (7.0.5730.11) worked fine. (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1)
biesi, we only use the cache if the server doesn't indicate that the file has updated, correct?
we use the cache if the file hasn't expired from it yet. if it is expired we ask the server if it changed.
Is that the right behavior? I mean, if the server has said it has changed, it seems to me like we should get a new copy instead of using the cache.
hm? I think you misunderstood me. In the cases where we contact the server and tells us the file changed, we do use the new data. But we don't always contact the server.
Nope, I understood you - I'm just arguing that maybe we should ask the server if the file has changed before we check the cache, and if it has, don't use the cache.
the point of cache is to avoid asking the server when we can...
for the data, sure, but for something like a HEAD request - it just seems to me that this is a use case where we should check with the server.
comment 0 says this download started as a normal pageload. also, we don't do HEAD requests for downloads (anymore).
if you want to make "save link target as" always check with the server, you can just set the VALIDATE_ALWAYS load flag.
Resolving old UNCONFIRMED Download Manager bugs as INCOMPLETE. If you still see this issue, please reopen. To mark all these bug changes as read, filter on ONOMATOPOEIA.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INCOMPLETE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.