1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

change expires headers for google analytics

Discussion in 'Programming' started by web-developer, Aug 27, 2011.

  1. #1
    Hi,

    I try to site speed up for my client site and for that I need to set Add Expires headers.

    I almost done all things for site speed up and I set expires headers for all my js, images favicon etc.

    But here I can't set expires headers for google analytics code and when I check Yslow its shows me like below.

    There are 2 static components without a far-future expiration date.

    * (2011/8/26) http://www.google-analytics.com/ga.js
    * (2011/8/26) http://pagead2.googlesyndication.com/pagead/show_ads.js

    Any one has idea how can I change Expires headers for above both js file.
    Please help me to solve this issues or provide guide line how can I do that.
     
    web-developer, Aug 27, 2011 IP
  2. ssmm987

    ssmm987 Member

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    3
    Trophy Points:
    43
    #2
    You can't change the expire headers from pages that are not situated on your site.

    Don't worry though. There is no need to either. Google analytics is included in most of the webpages. So even if the code expires quite quick, the change that they need to be reloaded are quite small.
     
    ssmm987, Aug 27, 2011 IP