What requests do browsers' “F5” and “Ctrl + F5” refreshes generate?

后端 未结 6 1066
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 09:00

Is there a standard for what actions F5 and Ctrl + F5 trigger in web browsers?

I once did experiment in IE6 and Firefox 2.x. The F5

6条回答
  •  孤独总比滥情好
    2020-11-22 09:45

    At least in Firefox (v3.5), cache seems to be disabled rather than simply cleared. If there are multiple instances of the same image on a page, it will be transferred multiple times. That is also the case for img tags that are added subsequently via Ajax/JavaScript.

    So in case you're wondering why the browser keeps downloading the same little icon a few hundred times on your auto-refresh Ajax site, it's because you initially loaded the page using CTRL-F5.

提交回复
热议问题