Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

download no-cache

  • 9 个回答
  • 1 人有此问题
  • 2 次查看
  • 最后回复者为 cor-el

more options

So I upload a file to my website. I download it. Then I correct the file, upload it again with the same name, and try to download it. But what I have now is the the old version, because it was in my cache. How can I download a file (or refresh a page ) WITHOUT consulting my cache? I don't want to erase my cache, I just want to ignore my cache in this ONE case.

So I upload a file to my website. I download it. Then I correct the file, upload it again with the same name, and try to download it. But what I have now is the the old version, because it was in my cache. How can I download a file (or refresh a page ) WITHOUT consulting my cache? I don't want to erase my cache, I just want to ignore my cache in this ONE case.

所有回复 (9)

more options

Hi, this is something that has been around since Netscape. If working on pages and then want to see what you have done. You will need to clear the cache as it will load the older page.

Note there is code for putting in a webpage. Several. https://www.google.com/search?q=code+for+webpage+to+load+new+not+from+cache&ie=utf-8&oe=utf-8&client=firefox-b

You say file so I interpreted this a webpage. If it is a file, you would have to have it load on a webpage the link and click the link also with the added code so it refreshes the cache.

Please let us know if this solved your issue or if need further assistance.

more options

Nope. There are actually many ways to refresh pages. But I want to refresh a FILE that I downloaded. See here ...

I put a file called myfile.pdf on my website. I download it with http://www.mysite.com/myfile.pdf I change the file, but keep the name. I download it again with http://www.mysite.com/myfile.pdf This time I get the old file, not the new one!

I should not have to erase my old cache to fix this. Also, this has nothing to do with Google, so a fix that refers to Google is irrelevant.

由user700204于修改

more options

Did I say the fix had anything to do with Google. Did you look at the URL as it showed sites that had other ways to add code to a website/page.

If you do not want to clear your cache and want to download the file then use a download manager. https://addons.mozilla.org/en-US/firefox/search/?platform=windows&q=download+manager

more options

You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.

  • hold down the Shift key and left-click the Reload button
  • press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • press "Command + Shift + R" (Mac)
more options

Thank you. I thought I tried Shift-Reload, and it didn't work, but I understand it is supposed to. Next time I'm in a pickle about this I will try that again, and "Command + Shift + R" (I'm using a Mac).

more options

The response from cor-el is really the way to go but on a side note, if you are developing, then you can also open the developer's tool, check the no cache checkbox and when you reload the page it will always fetch a new copy. I commonly use this when I am actively editing and testing a site to avoid any nonsense, hope it helps as an alternative.

more options

Where is the "no cache" checkbox? I don't see it when I pull down Tools>Web Developer.

more options

Under the Network tab.

more options

See also the Setting page in the toolbox (F1) under Advanced Settings.