how to add Expires headers - Help !

Status
Not open for further replies.

prateek

Banned
Banned
266
2009
72
0
Hello,
on my website http://www.cityvillehelp.com


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

PHP:
http://static.ak.fbcdn.net/connect.php/css/share-button-css
http://www.google-analytics.com/ga.js
http://static.ak.fbcdn.net/connect.php/js/FB.Share?ver=3.3.1
https://pagead2.googlesyndication.com/pagead/show_ads.js
https://tpc.googlesyndication.com/pagead/images/ad_choices_i.png
https://tpc.googlesyndication.com/pagead/images/ad_choices_en.png
https://pagead2.googlesyndication.com/pagead/expansion_embed.js
https://pagead2.googlesyndication.com/pagead/osd.js


I had added the Expires headers for all scripts and images which are hosted in my website but what to do of these ?? :facepalm:

Regards
 
7 comments
All that does is downloads a copy to host directly on your server which would work, but at times can really cause problems like people hacking your server since it downloads files.
 
yes
this is why i don't want to use this method ...
plz tell me some other ... there must be a solution

problem is what it has solution .. .. . ...
 
best choice would be to download these ONLY
Code:
http://www.google-analytics.com/ga.js 
https://pagead2.googlesyndication.com/pagead/show_ads.js 
https://tpc.googlesyndication.com/pagead/images/ad_choices_i.png 
https://tpc.googlesyndication.com/pagead/images/ad_choices_en.png 
https://pagead2.googlesyndication.com/pagead/expansion_embed.js 
https://pagead2.googlesyndication.com/pagead/osd.js

and host them directly.
 
Yup, what James said is correct. You should download the files and host them and then add the expire headers.
 
Status
Not open for further replies.
Back
Top