← Back to team overview

launchpad-dev team mailing list archive

query count differs for user agents

 

Hello there!

I am optimising a page like this:

    https://edge.launchpad.net/ubuntu/+source/bash/+changelog

and when accessing it via Firefox I see the following query count:

{{{
  <!--
      Facet name: overview
      Page type: main_only
      Has global search: True
      Has application tabs: True
      Has side portlets: False

      At least 124 queries issued in 7.71 seconds

      Launchpad 3.0 (r9737)
  -->
}}}

However, when getting the same page with wget I see a lower query count
(even though I am faking the user agent string):

{{{
$ wget -U 'Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.3)
Gecko/20091020 Ubuntu/9.10 (karmic) Firefox/3.5.3' -O -
https://edge.launchpad.net/ubuntu/+source/bash/+changelog | tail -15

  <!--
      Facet name: overview
      Page type: main_only
      Has global search: True
      Has application tabs: True
      Has side portlets: False

      At least 67 queries issued in 2.09 seconds

      Launchpad 3.0 (r9737)
  -->
}}}

Where does this difference come from and is there a way to avoid it i.e.
to have wget requests treated the same way as requests put forth by a
real browser?

Best regards

-- 
Muharem Hrnjadovic <muharem@xxxxxxxxxx>
Public key id   : B2BBFCFC
Key fingerprint : A5A3 CC67 2B87 D641 103F  5602 219F 6B60 B2BB FCFC

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups