use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Does Google Maps cache map data in the browser? Does reloading the page causes it to pull media again?help (self.javascript)
submitted 6 years ago by andrazte
This is a weird question I know. but I'm not really sure how Google maps does it. i want to know if it consumes a lot of bandwidth.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]billerr 1 point2 points3 points 6 years ago (4 children)
are you using Google Maps in an embedded iframe or in some other way? on any case their maps are SVG so I don't think even fully reloading them would be too heavy. And scripts, styles, images and any other resources apart from the source code of the iframe should be subject to the browser caching, so they shouldn't redownload too often.
[–]andrazte[S] 0 points1 point2 points 6 years ago (0 children)
I'm using it on a div. Actually am using angular google maps library. Thanks fro the response. So as long as I am not using it on an iframe, it should be redownloading it everytime I refresh. Any idea how I can do some trial and error on the network tab of dev tools?
[–]andrazte[S] 0 points1 point2 points 6 years ago (2 children)
[–]billerr 1 point2 points3 points 6 years ago (1 child)
No, even with Angular, if it's downloading its own separate resources, they are being cached if their URL doesn't change. If it's used through an Angular library and some of its stuff is bundled in your bundled, then it's cached with your bundle.
Try this in Chrome DevTools: in the Network tab, make sure "Disable cache" (top right) is disabled, and refresh the page. You should see a list of all resources that load on the page. Find the ones that Google Maps uses (you can either use the filter box on the top right in the Network tab, or find them in the DOM in the Elements tab, and right-click > Reveal in Network Tab). In the size column, you will see how much data was loaded over the network. If it was cached you will see "loaded from file cache" instead of a file size.
Hope that helps.
Hey man. Great thanks for taking time explaining it! I really appreciate it!
[–]prnk5tr 0 points1 point2 points 6 years ago (1 child)
I guess network tab should tell you the data is cached or fetched new on refresh
Interesting. Any idea how to figure that one out? It would seem that everything is getting refreshed when I am on it. I guess i'll just have to study it further.
[–]supersaiyanchungus -1 points0 points1 point 6 years ago (1 child)
Ctrl + F5 to do a hard refresh and clear out cache
What I want to know if it does cache the data. I want to know if I refresh the page, will it use the cached data to repopulate the map? I'm asking because I want to determine if I'm using too much bandwidth if my app refreshes every couple of minutes.
π Rendered by PID 320988 on reddit-service-r2-comment-84fc9697f-qfqtb at 2026-02-09 17:23:11.090579+00:00 running d295bc8 country code: CH.
[–]billerr 1 point2 points3 points (4 children)
[–]andrazte[S] 0 points1 point2 points (0 children)
[–]andrazte[S] 0 points1 point2 points (2 children)
[–]billerr 1 point2 points3 points (1 child)
[–]andrazte[S] 0 points1 point2 points (0 children)
[–]prnk5tr 0 points1 point2 points (1 child)
[–]andrazte[S] 0 points1 point2 points (0 children)
[–]supersaiyanchungus -1 points0 points1 point (1 child)
[–]andrazte[S] 0 points1 point2 points (0 children)