Email 可以使用gmail';RSS提要中的随机签名是否可用于真正的动态签名?

Email 可以使用gmail';RSS提要中的随机签名是否可用于真正的动态签名?,email,rss,gmail,Email,Rss,Gmail,这是gmail实验室的一项新功能,可以让你指定一个RSS提要,从中获取随机引用,并附加到你的电子邮件签名中。我想使用它根据我传入的参数、当前时间等以编程方式生成签名(例如,我在pine中有一个脚本,附加了当前麦凯恩和奥巴马获胜的概率,取自intrade的API。请参见下文)。但gmail似乎缓存了您指定URL的内容。有没有办法控制这一点,或者有人知道gmail多久查看一次URL 补充:这是我用来测试这个的程序。此文件位于。从这里开始的无缓存头思想似乎没有什么帮助 <?php header

这是gmail实验室的一项新功能,可以让你指定一个RSS提要,从中获取随机引用,并附加到你的电子邮件签名中。我想使用它根据我传入的参数、当前时间等以编程方式生成签名(例如,我在pine中有一个脚本,附加了当前麦凯恩和奥巴马获胜的概率,取自intrade的API。请参见下文)。但gmail似乎缓存了您指定URL的内容。有没有办法控制这一点,或者有人知道gmail多久查看一次URL

补充:这是我用来测试这个的程序。此文件位于。从这里开始的无缓存头思想似乎没有什么帮助

<?php

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
//XML Header
header("content-type:text/xml");
?>

<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91">
<channel>
<title>Dynamic Signatures</title>
<link>http://kibotzer.com</link>
<description>Blah blah</description>
<language>en-us</language>
<pubDate>26 Sep 2008 02:15:01 -0000</pubDate>
<webMaster>dreeves@kibotzer.com</webMaster>
<managingEditor>dreeves@kibotzer.com (Daniel Reeves)</managingEditor>
<lastBuildDate>26 Sep 2008 02:15:01 -0000</lastBuildDate>

<image>
<title>Kibotzer Logo</title>
<url>http://kibotzer.com/logos/kibo-logo-1.gif</url>
<link>http://kibotzer.com/</link>
<width>120</width>
<height>60</height>
<description>Kibotzer</description>
</image>

<item>
<title>
Dynamic Signature 1 (<?php echo gmdate("H:i:s"); ?>) 
</title>
<link>http://kibotzer.com</link>
<description>This is the description for Signature 1 (<?php echo gmdate("H:i:s"); ?>) </description>
</item>

<item>
<title>
Dynamic Signature 2 (<?php echo gmdate("H:i:s"); ?>) 
</title>
<link>http://kibotzer.com</link>
<description>This is the description for Signature 2 (<?php echo gmdate("H:i:s"); ?>) </description>
</item>

</channel>
</rss>

动态签名
http://kibotzer.com
废话
美国英语
2008年9月26日02:15:01-0000
dreeves@kibotzer.com
dreeves@kibotzer.com(丹尼尔·里维斯)
2008年9月26日02:15:01-0000
Kibotzer标志
http://kibotzer.com/logos/kibo-logo-1.gif
http://kibotzer.com/
120
60
基博泽
动态签名1()
http://kibotzer.com
这是签名1()的说明
动态签名2()
http://kibotzer.com
这是签名2()的说明
-- http://ai.eecs.umich.edu/people/dreeves --搜索:/“Daniel Reeves” 来自内部数据的最新概率。。。 42.1%麦凯恩当选总统(上一交易18:07周五) 57.0%奥巴马当选总统(上一次交易18:34周五) 2008年美国经济衰退17.6%(上周五16:24) 2008年对伊朗进行了16.1%的公开空袭(上周五17:39)
你也许可以在客户端做一些事情,看看这个随机添加签名的例子。因为它在您的控制之下,而不是谷歌的控制之下,所以您可以控制它是否缓存。

尝试设置和HTTP头。如果谷歌的签名码符合这两个标题中的任何一个,那么你就幸运了。

谢谢!说得好。不过,我想为普通用户开发一个应用程序,我认为greasemonkey对他们来说有点困难。如果他们能在他们的设置中指定一个URL就好了……我认为还有一种方法可以将greasemonkey脚本捆绑到一个独立的firefox插件中。我不知道这有多复杂,好主意。刚刚试过,但是,唉,据我所知,这不是对他们两个的尊敬。(我可能做错了)你是怎么测试的?他们需要重新请求您的签名,然后才能看到无缓存标志。我有点希望他们会忽略这一点,但出于某种原因,我想象他们异步获取并缓存结果。您可以使用max age对缓存时间进行一些控制 -- http://ai.eecs.umich.edu/people/dreeves - - search://"Daniel Reeves" Latest probabilities from intrade... 42.1% McCain becomes president (last trade 18:07 FRI) 57.0% Obama becomes president (last trade 18:34 FRI) 17.6% US recession in 2008 (last trade 16:24 FRI) 16.1% Overt air strike against Iran in '08 (last trade 17:39 FRI)