gpt4 book ai didi

google-maps - Google Maps缓存kml文​​件多长时间?

转载 作者:行者123 更新时间:2023-12-04 03:40:21 25 4
gpt4 key购买 nike

我有20多个kml/kmz文件,可让用户添加到Google Maps(版本2)中。我知道,如果我修改kml文件,则Google会缓存它,除非您更改文件名,否则不会立即更新它。

Google map 更新其缓存需要多长时间?

如果它在一个月内更新了缓存,那么对于我的KML文件进行较小的更改,我就可以避免更新文件名。

最佳答案

看到这里:http://code.google.com/apis/kml/documentation/kmlelementsinmaps.html

Expiration and time-based refresh are generally supported, although Google Maps does not refetch content from the Internet more often than (in the order of) fractions of a minute to a few minutes. Google Maps ignores expiration settings in the HTTP headers but does use the expiration settings specified in KML. In the absence of expiration settings, or within the time validity interval, Google Maps may cache data fetched from the Internet for unspecified durations. A refetch of the data from the Internet can be forced by renaming the document and fetching it under a different URL, or by making sure that the document contains appropriate expiration settings.



基本上,他们没有为缓存持续时间指定确切的时间。但是,根据经验,我相信这大约是几分钟而不是几个月。

关于google-maps - Google Maps缓存kml文​​件多长时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6822649/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com