文件通常在浏览器的缓存中保留多长时间?我想知道总体上-我需要等待多长时间才能合理确定大多数人的缓存会重新提取文件?
How long are files usually kept in a browser's cache? I'm wondering about the general population - how long would I need to wait to be reasonable certain that most people's caches will refetch the file?
推荐答案这在很大程度上取决于人,浏览器和设置。
It depends much on person, browser and settings.
浏览器通常为该任务保留一定数量的磁盘空间,例如12 MiB。如果用户停止使用浏览器,则它是无限期的。如果他/她很少使用浏览器,则直到到期为止-通过内部策略或HTTP标头。如果他/她大量使用浏览器,则可能需要12分钟或更短的时间。
Browsers usually reserve a certain amount of disk space, like 12 MiB, to this task. If a user stops using the browser it is indefinitely. If he/she uses the browser rarely, it will be until the expiration - either by internal policy or by HTTP headers. If he/she uses the browser heavily, it can be 12 minutes or even less.
我相信很难说一般,因为我有一个网站当时IE的市场份额超过75%,其中Firefox的条目占50%,Opera的条目占49%。如果您网站的目标受众是频繁使用浏览器的用户,那么它可能会很短。另一方面,如果您的网站只是访问过的网站,则几乎永远不会访问。
I believe that it is hard to say 'in general' as I had a website on which 50% entries were from Firefox and 49% from Opera when IE at that point had over 75% market share. If the target audience of your site are users who use their browsers heavily, it can be very short. On the other hand if your site is only website visited it can be nearly never.
更多推荐
文件通常在浏览器的缓存中保留多长时间
发布评论