Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2010
    Thanked 5 Times in 5 Posts

    How can I change expires headers for google analytics?


    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.

    Thanks in advance

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Your Monitor
    Thanked 547 Times in 534 Posts
    Are you talking about the request or reply headers? If you're talking about the reply headers from googles server there is nothing you can do about it.
    I can't really think of anything to write here now...


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts