according to the facebook Javascript SDK, the facebook application should include a “channel file” in their initialization code. as published here: http://developers.facebook.com/docs/reference/javascript/
I did not completely understand why they needed it, or what should be the contents of this file, but I just use their main example, as this can help in some specific problems.
my question is - they said that this channel.html file should be cached. and even gave an example of how to cache it using PHP:
<?php $cache_expire = 60*60*24*365; header("Pragma: public"); header("Cache-Control: max-age=".$cache_expire); header('Expires: ' . gmdate('D, d MYH:i:s', time()+$cache_expire) . ' GMT'); ?>
the thing is AFAIK, which cannot be executed with asp.net, since I cannot put C # code in an html file.
so meanwhile I just add it hard, for example:
<head> <meta http-equiv="cache-control" content="max-age=31536000;public" /> <meta http-equiv="expires" content="31536000" /> </head>
im not sure if this is the right way to do this, since "expires" should be specified on a specific format date.
any ideas how i can do it right? maybe i can use facebook 'channel.aspx' instead?
source share