On Mar 14, 3:00 pm, bratliff <bratl...@umich.edu> wrote:
> Grouping of API auxilliary JS files is inconsistent.  Two different
> runs of the same application resulted in the following:
>
> http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/%7Bcomm...http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/%7Butil...http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/%7Bonio...http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/%7Bcont...http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/%7Bstat...
>
> http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/%7Bcomm...http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/%7Butil...http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/%7Bcont...http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/%7Bstat...http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/%7Bmark...
>
> Some of the files cached in one run are not available to the other
> run.  Grouping reduces the number of http requests slightly but it
> also reduces the ability to reuse previously cached files.

I just ran the same application again.  The combined JS files are:

        maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/
{common,util}.js
        maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/
{map,overlay}.js
        maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/{onion}.js
        maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/{controls}.js
        maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/{stats}.js
        maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/4a/{marker}.js

The grouping seems to be totally arbitrary.  The chances of a cache
hit are very slim.  I guess if I run it enough times, I will have
enough permutations in my browser cache to stumble upon a previously
cached file.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to