Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    149
    Thanks
    0
    Thanked 5 Times in 5 Posts

    How can I change expires headers for google analytics?

    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.

    Thanks in advance

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,366
    Thanks
    61
    Thanked 530 Times in 517 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.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!


  •  

    Posting Permissions

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