Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
08-27-2011, 10:45 AM #1
- 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
08-27-2011, 12:26 PM #2
- Join Date
- Feb 2011
- Your Monitor
- Thanked 527 Times in 514 Posts
- Blog Entries
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!