Slashdot Mirror


Google Search Now Uses Service Worker For Repeated Searches (venturebeat.com)

An anonymous reader writes: Google Search is now using Service Worker to cache repeated searches, loading results twice as fast. The tidbit was shared this week by Dion Almaer, Google director of engineering, and Ben Galbraith, Google senior director of product, at Pluralsight Live in Salt Lake City, Utah. "Google Search's mission is to get relevant results to you as quickly as possible," Almaer said onstage. "So they invested in the largest deployment of Service Worker probably out there by being able to extra work on the fly and give you results sometimes twice as fast."

31 of 77 comments (clear)

  1. Can this be prevented? by Anonymous Coward · · Score: 1

    Is there any way to prevent Google from using Service Worker? That would be far more valuable to me than being able to repeat a search in half the time.

    1. Re:Can this be prevented? by Anonymous Coward · · Score: 1

      It's pretty easy to anticipate some ugly use cases.

      Service Worker is akin to a transparent proxy. One can imagine hosting sites injecting a Service Worker into a page and getting absolute control over every request; perfect tracking, altering every response in some manner, etc.

    2. Re: Can this be prevented? by cheater512 · · Score: 1

      Hosting sites? You mean sites that already have full control over everything on the page?

      They are relatively tame, highly restrictive and can only affect the site they belong to. If someone can inject a service worker somewhere then you have bigger problems since they'd also be able to inject regular JavaScript with far fewer restrictions.

    3. Re:Can this be prevented? by llamalad · · Score: 4, Informative

      Yes.

      https://www.ghacks.net/2016/03...

      tl; dr: about:config, disable service workers

    4. Re:Can this be prevented? by squiggleslash · · Score: 1

      Nothing wrong with them themselves, but they're generally underpaid and rarely get proper benefits. We need to make sure everyone in this country receives a living wage, and big corporations aren't subsidized by the families of their employees.

      Also they slow down your web browser and are difficult to disable while creating significant potential privacy issues. Especially if they use your phone to browse for porn while you're in the bathroom.

      --
      You are not alone. This is not normal. None of this is normal.
    5. Re:Can this be prevented? by llamalad · · Score: 1

      Google's browser doesn't let you prevent Google from running background jobs on your machine?

      I'm shocked. Shocked, I say. You should be entitled to a full refund of Chrome's purchase price.

    6. Re:Can this be prevented? by CanadianMacFan · · Score: 3, Informative

      From https://developers.google.com/...

      "A service worker is a script that your browser runs in the background, separate from a web page"

      It's not like a transparent proxy at all. I don't know why they don't just let your browser cache the page of search results instead of replicating the functionality with a script.

    7. Re:Can this be prevented? by omnichad · · Score: 1

      More standing than people who don't even use it and have no reason to complain at all.

    8. Re:Can this be prevented? by tepples · · Score: 1

      You should be entitled to a full refund of Chrome's purchase price.

      That'd be fine if there were a Firefoxbook.

    9. Re:Can this be prevented? by Dan+East · · Score: 1

      Because they want to track what you do and when, and show you dynamic ads for every distinct page view (the search results may stay the same, but the ads do not, as ads may get shown more times than what was paid for if they are cached). But yes, all of this complexity should be totally unnecessary. They just found a way to continue exerting the level of control and tracking they want while not harming performance quite as bad.

      --
      Better known as 318230.
    10. Re:Can this be prevented? by BrianMarshall · · Score: 1

      Is there any good reason not to do this? If I disable Service Workers, will some legitimate websites not work properly?

      --
      "When the going gets weird, the weird turn pro" -- HST
    11. Re:Can this be prevented? by BrianMarshall · · Score: 1

      Thanks!

      If I understand this, I really don't like service workers.

      If I (still) understand the way the web works, I really like the concept: I connect to a website; the website can't connect to me.

      --
      "When the going gets weird, the weird turn pro" -- HST
    12. Re:Can this be prevented? by tepples · · Score: 1

      Mozilla discontinued Firefox OS on phones, and it never expanded to the laptop form factor in the first place.

    13. Re:Can this be prevented? by thegarbz · · Score: 1

      Great conspiracy, but what you were talking about was already achieved by the Javascript they had in place.

    14. Re:Can this be prevented? by llamalad · · Score: 1

      Javascipt has pretty much ended that.

      For a while now, you connect to a web site and the site then loads its own libraries and executable code, as well as libraries and executable code from any number (I've seen 30+) of third party sites.

      You basically have no chance of understanding what's being done with your resources or to your machine (or your personal information) if you're letting sites run javascript on your machine.

      You can mitigate this somewhat with plugins like noscript, but you'll still need to manually whitelist most of the sites you visit and then painstakingly reenable third party sites and reload until the site you're trying to run actually works. And now that I use the term here, "site" isn't even applicable anymore as you're not going to a place so much as inviting a bunch of unknown coders into your own house to do who-knows-what with your information, tools, and resources.

      And no, it's not just a theoretical problem: https://blog.mozilla.org/secur...

  2. Re: Off topic, but true: anime is bad by reiterate · · Score: 2

    Akira though

  3. How is this an issue? by Anonymous Coward · · Score: 1

    Is waiting for a web search to return the results actually thing people sit and wait for? I can't remember ever having to wait, even when having to use dial-up. It smells like a non-news item, trying to get users to go back to google.com.

    1. Re:How is this an issue? by AHuxley · · Score: 1

      In the past the world got actual web search results. Now their computer is doing things for an ad company.

      --
      Domestic spying is now "Benign Information Gathering"
  4. Search can be “sometime twice as fast” by 93+Escort+Wagon · · Score: 3, Interesting

    I can’t say that I’ve ever thought “these search results loaded too slowly”. I have, on the other hand, said “why doesn’t Google do something about these pages which somehow manage to get highly ranked but don’t actually contain content which answers my question?”

    --
    #DeleteChrome
  5. Re:Search can be “sometime twice as fast&rdq by thegarbz · · Score: 1

    I can’t say that I’ve ever thought “these search results loaded too slowly”.

    I just opened up Google and typed: "Are you slow Google?" The first line said "About 705.000.000 results (in about 0,45 seconds)". Yeah. There's a lot of things to complain about but speed of loading results is not one of them.

  6. And ten times as old by Ungrounded+Lightning · · Score: 2

    But only if you've already asked the same thing before.

    And only if you don't care for anything that happened since the LAST time you searched.

    --
    Bantam Dominique roosters crow a four-note song. Once you've heard it as "Happy BIRTHday" you can't NOT hear it that way
  7. Are those "Service Workers" next-gen trackers? by ffkom · · Score: 1

    I haven't seen all the details yet, but the description of those "Service Workers" suspiciously sound like yet another vector for tracking the user's browsing across different web sites. I for one sure want that everything related to a web-site is gone from my computer when I close the last browser tab related to that web-site. And I do not want any "background service" implanted into my browser from visiting some site.

  8. Whatever by dohzer · · Score: 1

    Whatever 'Service Worker' is...

  9. Re:Search can be “sometime twice as fast&rdq by Fly+Swatter · · Score: 1

    Search results are no longer about what you want, it is about what everyone else wants. What web publishers want; what advertisers want; what politicians want; what corporations want; what governments want; what google wants; and finally, just maybe, they might include what you want.

  10. Re:Search can be “sometime twice as fast&rdq by rastos1 · · Score: 1

    I canâ(TM)t say that Iâ(TM)ve ever thought âoethese search results loaded too slowlyâ

    I have, on the other hand, noticed that the DNS TTL for google.com is 300 seconds. Isn't that too low? Is it really necessary for a DNS server to check with google every 5 minutes?

  11. Re:Search can be “sometime twice as fast& by 93+Escort+Wagon · · Score: 1

    Actually I use DDG as my default engine - have for a year or two. But occasionally when I don't get the search results I want, out of old habits I fall back to Google... and am invariably disappointed.

    --
    #DeleteChrome
  12. Re: Search can be “sometime twice as fast&am by thegarbz · · Score: 1

    No you clearly didn't get anything.

    At best you could claim from my post that there are 705million answer to the question. But they could be 705 million "NO!"s

  13. Google Gig by cstacy · · Score: 1

    These service workers are underpaid minions for the tech giant, slaves that come running every time those upper class pages make a request. It's the gig economy, exploiting workers who linger in the background, hoping for something to do. Shamefully discarded when there isn't enough for them to do. They're probably using foreign undocumented code, too!

  14. Cross-site flaws comprise most web vulnerabilities by raymorris · · Score: 1

    > You mean sites that already have full control over everything on the page?
    > They are relatively tame, highly restrictive and can only affect the site they belong to.

    Is what they said about JavaScript. There aren't any vulnerabilities associated with JavaScript, right?

    The same origin policy is a good idea, but browsers and web developers keep screwing it up, over and over again. Cross site request vulnerabilities and the most common type of vulnerability there is, according to HackerOne.
    ( https://www.zdnet.com/article/... )

    Cross site request forgery is another huge issue.

    Regarding "can only afford the site they belong to", the docs for service workers should be read as "we wish service workers only affected the same site, and they'll be CVEs issued for many of the thousands of different flaws which allow sites to install service workers affecting other sites".

  15. Wow, that poor guy! by kaizendojo · · Score: 1

    He must be so overworked!

  16. Re:Search can be “sometime twice as fast& by rtb61 · · Score: 1

    I have noticed on the occasional google test (the geek thing to keep track), they have been getting worse and more biased, more advertiser friendly, except when they are not. I noticed they would kick the advertisers regular search results, 'below the fold', when they served up the ad, to get you to click the ad and make the advertiser pay for that search, because the end user did not see them in the results and clicked the ad instead. Really bent that. You pay google ads words for worse google searches, greedy is as greedy does. So you know google's search algorithms now incorporate a whole range of adwords algorithms, which ever serves the most profit for them at the time or in the most crazy way, serves the political ideology of the board and fuck the investors.

    What is it with tech companies and that delusion of total power, why does it always infest the minds of it's board members and get seemingly rational people to do insane things for this quarters return when it will kill the company over the long term.

    --
    Chaos - everything, everywhere, everywhen