应用引擎urlfetch缓存清除 [英] app engine urlfetch cache clearing
问题描述
已经找到了这个
有没有一个命令可以清除所有的urlfetch缓存数据? p> http://www.mail-archive.com/ google-appengine@googlegroups.com/msg09869.html
这似乎通过网址的基础清除一个网址
没有。缓存 - 无论是作为urlfetch的一部分还是其他地方 - 公开缓存页面。多个用户可能会尝试获取相同的页面,并获得相同的缓存结果。因此,清除缓存将清除它给每个人。
HTTP提供绕过缓存的标头,如您引用的链接所示。如果您需要避免检索缓存的结果,则应该使用这些。
Is there a command to do a one time clear of all urlfetch cached data?
Have found this
http://www.mail-archive.com/google-appengine@googlegroups.com/msg09869.html
which seems to clear on a url by url basis
No. Caches - whether as part of urlfetch or elsewhere - cache pages publicly. Multiple users may try to fetch the same page, and get the same cached result. Thus, clearing the cache would clear it for everyone.
HTTP provides headers for bypassing caching, as the link you referenced indicates. These are what you should use if you need to avoid retrieving cached results.
这篇关于应用引擎urlfetch缓存清除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!