할 수 있는 gmail 의 임의 서명-에서는 RSS 피드 사용에 대한 진정으로 동적인 서명은?

StackOverflow https://stackoverflow.com/questions/142319

  •  02-07-2019
  •  | 
  •  

문제

이것은 새로운 gmail 연구소 기능 지정할 수 있는 RSS feed 을 잡고 무작위 따옴표에서 추가로 귀하의 이메일 서명이 있습니다.나는 다음과 같이 사용하는 서명을 생성하기 위해 프로그래밍 방식으로 매개 변수를 기반으로 전달에서,현재 시간,etc.(예를 들어,내가 스크립트에서는 소나무에 추가되는 현재의 확률이 매케인과 오바마 대통령은 우승,에서 가져온 intrade 의 API 를 사용합니다.아래 참조). 하지만 그것은 보인다 gmail 캐시의 내용을 지정한 URL 에 대한.어떤 방법을 제어하는 것 또는 방법을 아는 사람은 종종 gmail 에서 보이는 URL?

추가:여기에 프로그램을 사용하는 이 테스트합니다.이 파일의 삶에 http://kibotzer.com/sigs.php.No-cache header 아이디어에서 찍은 여기-- http://mapki.com/wiki/Dynamic_XML --보인다되지 않습니다.

<?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://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)
도움이 되었습니까?

해결책

당신이 할 수있을 수있는 무언가에서 클라이언트 측 살펴보고,이러 그리스 몽키는 스크립트 무작위로 추가 중요하다고 생각하고 있습니다.이후 그것은 당신의 통제하에,그리고 구글,제어할 수 있는 경우 캐시나지 않습니다.

다른 팁

설정하십시오 Cache-Control:no-cachePragma:no-cache HTTP 헤더가 있습니다.Google 코드 명예의 서명 하거나 이러한 헤더 다음을 수 있습니다에서 행운입니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top